mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-08 18:35:10 +00:00
Adjust new auth method for remote access
Keep old method of auth if remote connection is unsecured
This commit is contained in:
parent
41223da1c1
commit
77ec993f95
2 changed files with 14 additions and 5 deletions
|
@ -119,7 +119,9 @@ class LoginManual(xbmcgui.WindowXMLDialog):
|
|||
|
||||
def _login(self, username, password):
|
||||
|
||||
result = self.connect_manager['login'](self.connect_manager['server-address'], username, password)
|
||||
mode = self.connect_manager['server-mode']
|
||||
server = self.connect_manager['server-address']
|
||||
result = self.connect_manager['login'](server, username, password, False if mode == 1 and server.startswith('http://') else True)
|
||||
|
||||
if not result:
|
||||
self._error(ERROR['Invalid'], _('invalid_auth'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue