From 5262f871bb3989f42dad1a8d9baf284cc560c3b5 Mon Sep 17 00:00:00 2001 From: Entrouvert Date: Mon, 12 May 2014 13:45:47 +0000 Subject: [PATCH] fix check-password --- check-password | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check-password b/check-password index 7978cb8..ae9de04 100755 --- a/check-password +++ b/check-password @@ -14,6 +14,6 @@ try: except: log.exception('django.contrib.auth.authenticate raised an exception') else: - if user is None: - sys.exit(1) -sys.exit(0) + if user is not None: + sys.exit(0) +sys.exit(1)