diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 905cac944..a03c35381 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -848,6 +848,7 @@ class Mailer < ActionMailer::Base def register(token) set_language_if_valid(token.user.language) @token = token + @login = token.user.try(:login) @url = url_for(:controller => 'account', :action => 'activate', :token => token.value) mail :to => token.user.mail, :subject => "#{Setting.mail_subject}" diff --git a/app/views/mailer/register.html.erb b/app/views/mailer/register.html.erb index 40b8c4d29..146456358 100644 --- a/app/views/mailer/register.html.erb +++ b/app/views/mailer/register.html.erb @@ -23,13 +23,13 @@
- +

确实让创新更美好

- <%= @user.show_name %>,您好!
+ <%= @login %>,您好!
您已经成功注册为Trustie用户!
请点击以下链接激活您的帐号:
<%= link_to h(@url), @url, :style => "font-weight: normal; color:#3b94d6;" %>