Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Rename a variable to match code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 17, 2020
1 parent 0a46470 commit ff625a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/set_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def __init__(self, hs):
def set_password(
self,
user_id: str,
newpassword: str,
new_password: str,
logout_devices: bool,
requester: Optional[Requester] = None,
):
if not self.hs.config.password_localdb_enabled:
raise SynapseError(403, "Password change disabled", errcode=Codes.FORBIDDEN)

password_hash = yield self._auth_handler.hash(newpassword)
password_hash = yield self._auth_handler.hash(new_password)

try:
yield self.store.user_set_password_hash(user_id, password_hash)
Expand Down

0 comments on commit ff625a9

Please sign in to comment.