mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-09 06:45:06 -04:00
Merge pull request #2773 from matrix-org/erikj/hash_bg
Do bcrypt hashing in a background thread
This commit is contained in:
commit
825a07a974
3 changed files with 18 additions and 10 deletions
|
@ -131,7 +131,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