1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00
(cherry picked from commit 63769c73cf)
This commit is contained in:
Florent Daigniere
2024-09-09 19:25:33 +02:00
committed by Mergify
parent 165e800670
commit 8e0809ebfe
2 changed files with 2 additions and 1 deletions

View File

@@ -637,7 +637,7 @@ in clear-text regardless of the presence of the cache.
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):