Skip to content

Commit

Permalink
add user.password_change_needed = False in change_password anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
Anish9901 committed Nov 14, 2024
1 parent edb4ef9 commit b893977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mathesar/utils/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def change_password(user_id, old_password, new_password):
if not user.check_password(old_password):
raise Exception('Old password is not correct')
user.set_password(new_password)
user.password_change_needed = False
user.save()


Expand Down

0 comments on commit b893977

Please sign in to comment.