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 @@