mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix login to error for nonexistent users
Fixes SYN-680
This commit is contained in:
parent
b42ad359e9
commit
4c1b32d7e2
@ -441,7 +441,7 @@ class AuthHandler(BaseHandler):
|
|||||||
user_id, password_hash = yield self._find_user_id_and_pwd_hash(user_id)
|
user_id, password_hash = yield self._find_user_id_and_pwd_hash(user_id)
|
||||||
defer.returnValue(not self.validate_hash(password, password_hash))
|
defer.returnValue(not self.validate_hash(password, password_hash))
|
||||||
except LoginError:
|
except LoginError:
|
||||||
defer.returnValue(False)
|
defer.returnValue(True)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _check_ldap_password(self, user_id, password):
|
def _check_ldap_password(self, user_id, password):
|
||||||
|
Loading…
Reference in New Issue
Block a user