mirror of
https://mau.dev/maunium/synapse.git
synced 2024-06-26 14:38:18 +02:00
Fix pep8
This commit is contained in:
parent
507b8bb091
commit
1ee2584307
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue