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)
4
4
@user = user
5
5
token = user . verification_tokens . email . create!
6
6
@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 )
8
10
end
9
11
10
12
def destroy_confirmation ( user )
@@ -14,7 +16,6 @@ def destroy_confirmation(user)
14
16
mail ( from : SiteSetting . value ( 'emails' ) [ 'from' ] , to : user . email , subject : "Confirm deleting your mooc.fi account" )
15
17
end
16
18
17
-
18
19
private
19
20
20
21
def base_url
You can’t perform that action at this time.
0 commit comments