mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-31 12:00:08 -07:00
Check for blank username/passwords on login
This commit is contained in:
parent
c2ccb51ef5
commit
1e1e3beca6
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ from plexpy.plextv import PlexTV
|
||||||
SESSION_KEY = '_cp_username'
|
SESSION_KEY = '_cp_username'
|
||||||
|
|
||||||
def user_login(username=None, password=None):
|
def user_login(username=None, password=None):
|
||||||
if not username and not password:
|
if not username or not password:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Try to login to Plex.tv to check if the user has a vaild account
|
# Try to login to Plex.tv to check if the user has a vaild account
|
||||||
|
@ -211,7 +211,7 @@ class AuthController(object):
|
||||||
if not cherrypy.config.get('tools.sessions.on'):
|
if not cherrypy.config.get('tools.sessions.on'):
|
||||||
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT)
|
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT)
|
||||||
|
|
||||||
if username is None or password is None:
|
if not username and not password:
|
||||||
return self.get_loginform()
|
return self.get_loginform()
|
||||||
|
|
||||||
(vaild_login, user_group) = check_credentials(username, password, admin_login)
|
(vaild_login, user_group) = check_credentials(username, password, admin_login)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue