summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-07 17:45:42 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-07 17:45:42 +0100
commitdfa98f911be7de6b30a1e2adf2ba5c72f1030d61 (patch)
tree893aa04538a7f2963696c2de4c472fe5a38a6ca4 /synapse/handlers
parentpynacl-0.3.0 was released so we can finally start using it directly from pypi (diff)
downloadsynapse-dfa98f911be7de6b30a1e2adf2ba5c72f1030d61.tar.xz
revert accidental bcrypt gensalt round reduction from loadtesting
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index c0036e1f40..7b68585a17 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -82,7 +82,7 @@ class RegistrationHandler(BaseHandler):
         yield run_on_reactor()
         password_hash = None
         if password:
-            password_hash = bcrypt.hashpw(password, bcrypt.gensalt(1))
+            password_hash = bcrypt.hashpw(password, bcrypt.gensalt())
 
         if localpart:
             yield self.check_username(localpart)