Add global allow guest access setting and per user toggles
This commit is contained in:
@@ -39,7 +39,7 @@ def check_credentials(username, password):
|
||||
return True, u'admin'
|
||||
elif username == plexpy.CONFIG.HTTP_USERNAME and password == plexpy.CONFIG.HTTP_PASSWORD:
|
||||
return True, u'admin'
|
||||
elif user_login(username, password):
|
||||
elif plexpy.CONFIG.ALLOW_GUEST_ACCESS and user_login(username, password):
|
||||
return True, u'guest'
|
||||
else:
|
||||
return False, None
|
||||
|
Reference in New Issue
Block a user