mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 08:42:14 -04:00
Swap out bcrypt for md5 in tests
This reduces our ~8 second sequential test time down to ~7 seconds
This commit is contained in:
parent
4c56928263
commit
3063383547
3 changed files with 39 additions and 3 deletions
|
@ -82,7 +82,7 @@ class RegistrationHandler(BaseHandler):
|
|||
yield run_on_reactor()
|
||||
password_hash = None
|
||||
if password:
|
||||
password_hash = bcrypt.hashpw(password, bcrypt.gensalt())
|
||||
password_hash = self.auth_handler().hash(password)
|
||||
|
||||
if localpart:
|
||||
yield self.check_username(localpart)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue