mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 21:27:10 +01:00
Fix: Add alias delete event to contain email
This commit is contained in:
parent
9f33764068
commit
1ba97eef6e
@ -363,11 +363,16 @@ def delete_alias(
|
|||||||
Session.commit()
|
Session.commit()
|
||||||
LOG.i(f"Moving {alias} to global trash {deleted_alias}")
|
LOG.i(f"Moving {alias} to global trash {deleted_alias}")
|
||||||
|
|
||||||
|
alias_id = alias.id
|
||||||
|
alias_email = alias.email
|
||||||
Alias.filter(Alias.id == alias.id).delete()
|
Alias.filter(Alias.id == alias.id).delete()
|
||||||
Session.commit()
|
Session.commit()
|
||||||
|
|
||||||
EventDispatcher.send_event(
|
EventDispatcher.send_event(
|
||||||
user, EventContent(alias_deleted=AliasDeleted(alias_id=alias.id))
|
user,
|
||||||
|
EventContent(
|
||||||
|
alias_deleted=AliasDeleted(alias_id=alias_id, alias_email=alias_email)
|
||||||
|
),
|
||||||
)
|
)
|
||||||
if commit:
|
if commit:
|
||||||
Session.commit()
|
Session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user