Only show login when both username and password are filled in. fix #2157
This commit is contained in:
@@ -22,7 +22,7 @@ class BaseHandler(RequestHandler):
|
||||
username = Env.setting('username')
|
||||
password = Env.setting('password')
|
||||
|
||||
if username or password:
|
||||
if username and password:
|
||||
return self.get_secure_cookie('user')
|
||||
else: # Login when no username or password are set
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user