summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-14 18:28:42 +0100
committerDavid Baker <dave@matrix.org>2016-04-14 18:28:42 +0100
commit4c1b32d7e246a97fad97d03e450e2df078a86bf3 (patch)
tree69641f91061140b1e7b3e288d0aa679386d0fa16 /synapse
parentMerge pull request #725 from matrix-org/dbkr/push_only_joined (diff)
downloadsynapse-4c1b32d7e246a97fad97d03e450e2df078a86bf3.tar.xz
Fix login to error for nonexistent users
Fixes SYN-680
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 7a13a8b11c..9341cb5cfe 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -441,7 +441,7 @@ class AuthHandler(BaseHandler):
             user_id, password_hash = yield self._find_user_id_and_pwd_hash(user_id)
             defer.returnValue(not self.validate_hash(password, password_hash))
         except LoginError:
-            defer.returnValue(False)
+            defer.returnValue(True)
 
     @defer.inlineCallbacks
     def _check_ldap_password(self, user_id, password):