Only show login when both username and password are filled in. fix #2157

This commit is contained in:
Ruud
2013-09-14 11:41:16 +02:00
parent b83b2453a0
commit 6b4e4fd440

View File

@@ -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