Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nextgens committed Sep 9, 2024
1 parent 8ed0268 commit 63769c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/admin/mailu/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ def set_password(self, password, raw=False, keep_sessions=None):
set() containing the sessions to keep
"""
self.password = password if raw else User.get_password_context().hash(password)
if keep_sessions is not True:
if keep_sessions is not True and self.email is not None:
utils.MailuSessionExtension.prune_sessions(uid=self.email, keep=keep_sessions)

def get_managed_domains(self):
Expand Down
1 change: 1 addition & 0 deletions towncrier/newsfragments/3411.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure we do not nuke all web-sessions when a password is changed using the command line

0 comments on commit 63769c7

Please sign in to comment.