mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
zerver: Remove dead code from do_change_password.
This commit is contained in:
@@ -2689,13 +2689,8 @@ def do_change_subscription_property(user_profile: UserProfile, sub: Subscription
|
|||||||
name=stream.name)
|
name=stream.name)
|
||||||
send_event(event, [user_profile.id])
|
send_event(event, [user_profile.id])
|
||||||
|
|
||||||
def do_change_password(user_profile: UserProfile, password: str, commit: bool=True,
|
def do_change_password(user_profile: UserProfile, password: str, commit: bool=True) -> None:
|
||||||
hashed_password: bool=False) -> None:
|
user_profile.set_password(password)
|
||||||
if hashed_password:
|
|
||||||
# This is a hashed password, not the password itself.
|
|
||||||
user_profile.set_password(password)
|
|
||||||
else:
|
|
||||||
user_profile.set_password(password)
|
|
||||||
if commit:
|
if commit:
|
||||||
user_profile.save(update_fields=["password"])
|
user_profile.save(update_fields=["password"])
|
||||||
event_time = timezone_now()
|
event_time = timezone_now()
|
||||||
|
|||||||
Reference in New Issue
Block a user