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)