mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 13:44:56 -04:00
Do bcrypt hashing in a background thread
This commit is contained in:
parent
624c46eb06
commit
f8e1ab5fee
3 changed files with 18 additions and 10 deletions
|
@ -130,7 +130,7 @@ class RegistrationHandler(BaseHandler):
|
|||
yield run_on_reactor()
|
||||
password_hash = None
|
||||
if password:
|
||||
password_hash = self.auth_handler().hash(password)
|
||||
password_hash = yield self.auth_handler().hash(password)
|
||||
|
||||
if localpart:
|
||||
yield self.check_username(localpart, guest_access_token=guest_access_token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue