Do bcrypt hashing in a background thread

This commit is contained in:
Erik Johnston 2018-01-10 18:01:28 +00:00
parent 624c46eb06
commit f8e1ab5fee
3 changed files with 18 additions and 10 deletions

View file

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