diff --git a/mathesar/utils/users.py b/mathesar/utils/users.py index 989d5181df..6a42170aa6 100644 --- a/mathesar/utils/users.py +++ b/mathesar/utils/users.py @@ -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()