Skip to content
Snippets Groups Projects
Commit 4e089624 authored by Martin Mareš's avatar Martin Mareš
Browse files

DSN: Reset, pokud org mění účtu e-mail

parent 9aef86db
No related branches found
No related tags found
1 merge request!138Zpracování nedoručenek
...@@ -524,8 +524,9 @@ def org_user_edit(id: int): ...@@ -524,8 +524,9 @@ def org_user_edit(id: int):
form.populate_obj(user) form.populate_obj(user)
if sess.is_modified(user): if sess.is_modified(user):
changes = db.get_object_changes(user) changes = db.get_object_changes(user)
if 'email' in changes:
app.logger.info(f"User {id} modified, changes: {changes}") mo.users.reset_user_dsn(user)
app.logger.info(f"Uživatel #{id} změněn: {changes}")
mo.util.log( mo.util.log(
type=db.LogType.user, type=db.LogType.user,
what=id, what=id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment