1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

Set the flag when reset by command line too

This commit is contained in:
Florent Daigniere 2023-08-12 09:03:15 +02:00
parent 7b13ceb693
commit 25b89a732b

View File

@ -123,6 +123,7 @@ def password(localpart, domain_name, password):
user = models.User.query.get(email)
if user:
user.set_password(password, keep_only_session='')
user.change_pw_next_login=True
else:
print(f'User {email} not found.')
db.session.commit()