From 6b4e4fd440d81175331b72c7aabe055af6b00d99 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 14 Sep 2013 11:41:16 +0200 Subject: [PATCH] Only show login when both username and password are filled in. fix #2157 --- couchpotato/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/__init__.py b/couchpotato/__init__.py index 04756fa4..b8aa3ab9 100644 --- a/couchpotato/__init__.py +++ b/couchpotato/__init__.py @@ -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