Commit 03b11e4c authored by o's avatar o
Browse files

address review

parent d3fd37dd
Pipeline #9747 passed with stage
in 2 minutes and 47 seconds
......@@ -4,7 +4,7 @@ class AuditMail < BaseMailer
language = if SUPPORTED_LANG.include? language then language else 'multi' end
mail(
to: recipient,
subject: "Sicherheitsinfo / Security Event - immerda.ch",
subject: "Einstellungsänderung / Changed settings",
) do |format|
# https://github.com/rails/rails/issues/22045
self.action_name = language
......
# encoding: utf-8
Ping <%= recipient %> !
Hallo <%= recipient %>
[de]
......@@ -9,7 +9,7 @@ Soeben wurde folgende Kontoeinstellungen vorgenommen:
Sollte diese Änderung nicht von dir stammen, kontaktiere uns so schnell wie möglich via admin@immerda.ch.
Um deine Kontoeinstellungen zu überprüfen, gehe auf https://www.immerda.ch, klicke auf den Schmetterling am unteren Ende der seite und dann auf Einstellungen.
Um deine Kontoeinstellungen zu überprüfen, gehe auf https://www.immerda.ch, klicke auf Dienste, dann Einstellungen.
[en]
......@@ -19,6 +19,6 @@ The following settings have been changed on your account:
If you did not make these changes, please contact us as quickly as possible via admin@immerda.ch.
To configure your account and audit changes visit https://immerda.ch, click on the butterfly at the bottom and then Einstellungen.
To configure your account and audit changes visit https://immerda.ch, click on the link called Dienste, then Einstellungen.
immerda admin team
......@@ -41,6 +41,10 @@ class TransactionManager
def add_audit_log(user, event, msg = "")
add_user_transaction('audit_log', user, {event: event, msg: msg}.to_json, 90)
AuditMail.notify(user.email, event, msg).deliver
# Catching every exception is a bit dangerous, but I don't see an
# alternative as there are so many things that could happen.
rescue Exception => e
IApiLog.error("Failed to create audit event #{e}")
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment