mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Send email even if password is not changed (#7577).
git-svn-id: http://svn.redmine.org/redmine/trunk@16453 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
91e2430301
commit
9441ab0ca8
@ -140,7 +140,7 @@ class UsersController < ApplicationController
|
|||||||
|
|
||||||
if was_activated
|
if was_activated
|
||||||
Mailer.account_activated(@user).deliver
|
Mailer.account_activated(@user).deliver
|
||||||
elsif @user.active? && params[:send_information] && @user.password.present? && @user.auth_source_id.nil? && @user != User.current
|
elsif @user.active? && params[:send_information] && @user != User.current
|
||||||
Mailer.account_information(@user, @user.password).deliver
|
Mailer.account_information(@user, @user.password).deliver
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,9 @@
|
|||||||
<p><%= l(:mail_body_account_information) %>:</p>
|
<p><%= l(:mail_body_account_information) %>:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><%= l(:field_login) %>: <%= @user.login %></li>
|
<li><%= l(:field_login) %>: <%= @user.login %></li>
|
||||||
|
<% if @password %>
|
||||||
<li><%= l(:field_password) %>: <%= @password %></li>
|
<li><%= l(:field_password) %>: <%= @password %></li>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<% if @user.auth_source %><%= l(:mail_body_account_information_external, @user.auth_source.name) %>
|
<% if @user.auth_source %><%= l(:mail_body_account_information_external, @user.auth_source.name) %>
|
||||||
<% else %><%= l(:mail_body_account_information) %>:
|
<% else %><%= l(:mail_body_account_information) %>:
|
||||||
* <%= l(:field_login) %>: <%= @user.login %>
|
* <%= l(:field_login) %>: <%= @user.login %>
|
||||||
* <%= l(:field_password) %>: <%= @password %>
|
<% if @password %>* <%= l(:field_password) %>: <%= @password %><% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= l(:label_login) %>: <%= @login_url %>
|
<%= l(:label_login) %>: <%= @login_url %>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
|
<%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
|
||||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||||
<% if @user.active? && email_delivery_enabled? && @user != User.current -%>
|
<% if @user.active? && email_delivery_enabled? && @user != User.current -%>
|
||||||
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
|
<p><label><%= check_box_tag 'send_information', 1, params[:send_information] %> <%= l(:label_send_information) %></label></p>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<p><%= submit_tag l(:button_save) %></p>
|
<p><%= submit_tag l(:button_save) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
|
<%= labelled_form_for @user, :html => {:multipart => true} do |f| %>
|
||||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||||
<% if email_delivery_enabled? %>
|
<% if email_delivery_enabled? %>
|
||||||
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
|
<p><label><%= check_box_tag 'send_information', 1, params[:send_information] %> <%= l(:label_send_information) %></label></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<p>
|
<p>
|
||||||
<%= submit_tag l(:button_create) %>
|
<%= submit_tag l(:button_create) %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user