diff --git a/core/admin/mailu/manage.py b/core/admin/mailu/manage.py index 23d4d088..511de17c 100644 --- a/core/admin/mailu/manage.py +++ b/core/admin/mailu/manage.py @@ -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()