申请加入邮件通知添加自动登录功能

This commit is contained in:
huang 2015-07-27 16:03:03 +08:00
parent a7ca8edbf0
commit ed27b6e30f
1 changed files with 2 additions and 1 deletions

View File

@ -388,7 +388,8 @@ class Mailer < ActionMailer::Base
@user = applied.user @user = applied.user
recipients = @project.manager_recipients recipients = @project.manager_recipients
s = l(:text_applied_project, :id => "##{@user.show_name}", :project => @project.name) s = l(:text_applied_project, :id => "##{@user.show_name}", :project => @project.name)
@applied_url = url_for(:controller => 'projects', :action => 'settings', :id => @project.id,:tab=>'members') @token = Token.get_token_from_user(@user, 'autologin')
@applied_url = url_for(:controller => 'projects', :action => 'settings', :id => @project.id,:tab=>'members', :token => @token.value)
mail :to => recipients, mail :to => recipients,
:subject => s :subject => s
end end