diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-02-05 07:33:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-02-05 07:33:24 +0000 |
commit | 5d70fce6ce4c481f058fc1b89d567c1389cb7e54 (patch) | |
tree | fe7c5a9602d73ef312b544783efb0ff645bc7f1d /app/views/mailer | |
parent | 40e6a74d4834f171bd8080dce39c587d84fb86da (diff) | |
download | redmine-5d70fce6ce4c481f058fc1b89d567c1389cb7e54.tar.gz redmine-5d70fce6ce4c481f058fc1b89d567c1389cb7e54.zip |
Security notifications when password or email adress is changed (#21421).
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@15145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/mailer')
-rw-r--r-- | app/views/mailer/security_notification.html.erb | 13 | ||||
-rw-r--r-- | app/views/mailer/security_notification.text.erb | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/views/mailer/security_notification.html.erb b/app/views/mailer/security_notification.html.erb new file mode 100644 index 000000000..53bf0a0d5 --- /dev/null +++ b/app/views/mailer/security_notification.html.erb @@ -0,0 +1,13 @@ +<p><%= @message %><br /> +<% if @url && @title -%> +<%= link_to @title, @url -%> +<% elsif @url -%> +<%= link_to @url -%> +<% elsif @title -%> +<%= content_tag :h1, @title -%> +<% end %></p> + +<p><%= l(:field_user) %>: <strong><%= User.current.login %></strong><br/> +<%= l(:field_remote_ip) %>: <strong><%= User.current.remote_ip %></strong><br/> +<%= l(:label_date) %>: <strong><%= format_time Time.now, true, @user %></strong></p> + diff --git a/app/views/mailer/security_notification.text.erb b/app/views/mailer/security_notification.text.erb new file mode 100644 index 000000000..17fd6ef67 --- /dev/null +++ b/app/views/mailer/security_notification.text.erb @@ -0,0 +1,8 @@ +<%= @message %> + +<%= @url || @title %> + +<%= l(:field_user) %>: <%= User.current.login %> +<%= l(:field_remote_ip) %>: <%= User.current.remote_ip %> +<%= l(:label_date) %>: <%= format_time Time.now, true, @user %> + |