File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ def email_confirmation(user, origin = nil)
44 @user = user
55 token = user . verification_tokens . email . create!
66 @url = base_url + confirm_email_path ( @user . id , token . token )
7- mail ( from : SiteSetting . value ( 'emails' ) [ 'from' ] , to : user . email , subject : "Confirm your mooc.fi account email address" )
7+ subject = "Confirm your mooc.fi account email address"
8+ subject = "#{ origin } : #{ subject } " if origin
9+ mail ( from : SiteSetting . value ( 'emails' ) [ 'from' ] , to : user . email , subject : subject )
810 end
911
1012 def destroy_confirmation ( user )
@@ -14,7 +16,6 @@ def destroy_confirmation(user)
1416 mail ( from : SiteSetting . value ( 'emails' ) [ 'from' ] , to : user . email , subject : "Confirm deleting your mooc.fi account" )
1517 end
1618
17-
1819 private
1920
2021 def base_url
You can’t perform that action at this time.
0 commit comments