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:
parent
7b13ceb693
commit
25b89a732b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user