mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
parent
c12918f321
commit
a3ae264cf7
2 changed files with 3 additions and 5 deletions
|
@ -120,7 +120,7 @@ class LoginManual(xbmcgui.WindowXMLDialog):
|
||||||
|
|
||||||
mode = self.connect_manager['server-mode']
|
mode = self.connect_manager['server-mode']
|
||||||
server = self.connect_manager['server-address']
|
server = self.connect_manager['server-address']
|
||||||
result = self.connect_manager['login'](server, username, password, False if mode == 1 and server.startswith('http://') else True)
|
result = self.connect_manager['login'](server, username, password)
|
||||||
|
|
||||||
if not result:
|
if not result:
|
||||||
self._error(ERROR['Invalid'], _('invalid_auth'))
|
self._error(ERROR['Invalid'], _('invalid_auth'))
|
||||||
|
|
|
@ -157,12 +157,10 @@ class ConnectionManager(object):
|
||||||
'type': "POST",
|
'type': "POST",
|
||||||
'url': self.get_jellyfin_url(server, "Users/AuthenticateByName"),
|
'url': self.get_jellyfin_url(server, "Users/AuthenticateByName"),
|
||||||
'json': {
|
'json': {
|
||||||
'username': username,
|
'Username': username,
|
||||||
'password': hashlib.sha1(password or "").hexdigest(),
|
'Pw': password or ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if clear:
|
|
||||||
request['json']['pw'] = password or ""
|
|
||||||
|
|
||||||
result = self._request_url(request, False)
|
result = self._request_url(request, False)
|
||||||
except Exception as error: # Failed to login
|
except Exception as error: # Failed to login
|
||||||
|
|
Loading…
Reference in a new issue