Merge pull request #2773 from matrix-org/erikj/hash_bg

Do bcrypt hashing in a background thread
This commit is contained in:
Erik Johnston 2018-01-10 18:11:41 +00:00 committed by GitHub
commit 825a07a974
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 10 deletions

View file

@ -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)