fix check-password

This commit is contained in:
Entrouvert 2014-05-12 13:45:47 +00:00
parent 52ad44c3fb
commit 5262f871bb
1 changed files with 3 additions and 3 deletions

View File

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