2 files changed, 3 insertions, 2 deletions
diff --git a/synapse/config/password.py b/synapse/config/password.py
index 7c5cb5f0e1..058a3a5346 100644
--- a/synapse/config/password.py
+++ b/synapse/config/password.py
@@ -34,4 +34,4 @@ class PasswordConfig(Config):
# Change to a secret random string.
# DO NOT CHANGE THIS AFTER INITIAL SETUP!
#pepper: "HR32t0xZcQnzn3O0ZkEVuetdFvH1W6TeEPw6JjH0Cl+qflVOseGyFJlJR7ACLnywjN9"
- """
\ No newline at end of file
+ """
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index fd5fadf73d..be46681c64 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -750,7 +750,8 @@ class AuthHandler(BaseHandler):
Returns:
Hashed password (str).
"""
- return bcrypt.hashpw(password + self.hs.config.password_config.pepper, bcrypt.gensalt(self.bcrypt_rounds))
+ return bcrypt.hashpw(password + self.hs.config.password_config.pepper,
+ bcrypt.gensalt(self.bcrypt_rounds))
def validate_hash(self, password, stored_hash):
"""Validates that self.hash(password) == stored_hash.
|