summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-07 16:46:38 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-07 16:46:51 +0100
commitef8e8ebd917dd911ad6af4f71fc754b631ba4e49 (patch)
tree2812be4b7e33bc1964e43d4362c5ef3300d700a9 /synapse/handlers
parentMerge branch 'develop' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-ef8e8ebd917dd911ad6af4f71fc754b631ba4e49.tar.xz
pynacl-0.3.0 was released so we can finally start using it directly from pypi
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 7b68585a17..c0036e1f40 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())
+            password_hash = bcrypt.hashpw(password, bcrypt.gensalt(1))
 
         if localpart:
             yield self.check_username(localpart)