zerver: Remove dead code from do_change_password.

This commit is contained in:
=
2018-05-15 16:05:02 -04:00
committed by Tim Abbott
parent 9d07faaf0c
commit e731aeda44

View File

@@ -2689,12 +2689,7 @@ def do_change_subscription_property(user_profile: UserProfile, sub: Subscription
name=stream.name)
send_event(event, [user_profile.id])
def do_change_password(user_profile: UserProfile, password: str, commit: bool=True,
hashed_password: bool=False) -> None:
if hashed_password:
# This is a hashed password, not the password itself.
user_profile.set_password(password)
else:
def do_change_password(user_profile: UserProfile, password: str, commit: bool=True) -> None:
user_profile.set_password(password)
if commit:
user_profile.save(update_fields=["password"])