mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Replaced numeric with alphanum dialog for easypin
Would display with external connection and fail to auth. Easy pin is only for in-network connections.
This commit is contained in:
parent
fd83fe1b52
commit
2112ab951b
1 changed files with 1 additions and 13 deletions
|
@ -199,16 +199,12 @@ class UserClient(threading.Thread):
|
|||
for user in users:
|
||||
name = user.get("Name")
|
||||
userHasPassword = False
|
||||
userHasPin = False
|
||||
if (username == name):
|
||||
# Verify if user has a password
|
||||
if (user.get("HasPassword") == True):
|
||||
userHasPassword = True
|
||||
# Verify if user enabled easy pin and enabled it's use
|
||||
if (user.get("HasConfiguredEasyPassword") == True) and (user.get("Configuration")["EnableLocalPassword"] == True):
|
||||
userHasPin = True
|
||||
# If user has password
|
||||
if (userHasPassword) and (userHasPin == False):
|
||||
if (userHasPassword):
|
||||
password = xbmcgui.Dialog().input("Enter password for user: %s" % username, option=xbmcgui.ALPHANUM_HIDE_INPUT)
|
||||
# If password dialog is cancelled
|
||||
if password == "":
|
||||
|
@ -216,14 +212,6 @@ class UserClient(threading.Thread):
|
|||
self.WINDOW.setProperty("Server_status", "Stop")
|
||||
self.auth = False
|
||||
return
|
||||
elif (userHasPassword) and (userHasPin):
|
||||
password = xbmcgui.Dialog().input("Enter easy pin for user: %s" % username, type=xbmcgui.INPUT_NUMERIC)
|
||||
# If password dialog is cancelled
|
||||
if password == "":
|
||||
self.logMsg("No password entered.", 0)
|
||||
self.WINDOW.setProperty("Server_status", "Stop")
|
||||
self.auth = False
|
||||
return
|
||||
break
|
||||
else:
|
||||
# Manual login, user is hidden
|
||||
|
|
Loading…
Reference in a new issue