@ -325,7 +325,7 @@ func (emailer *Emailer) confirmationValues(code, username, key string, app *appC
}
}
} else {
} else {
message := app . config . Section ( "messages" ) . Key ( "message" ) . String ( )
message := app . config . Section ( "messages" ) . Key ( "message" ) . String ( )
inviteLink := app . External Host
inviteLink := app . External URI
if code == "" { // Personal email change
if code == "" { // Personal email change
inviteLink = fmt . Sprintf ( "%s/my/confirm/%s" , inviteLink , url . PathEscape ( key ) )
inviteLink = fmt . Sprintf ( "%s/my/confirm/%s" , inviteLink , url . PathEscape ( key ) )
} else { // Invite email confirmation
} else { // Invite email confirmation
@ -393,7 +393,7 @@ func (emailer *Emailer) inviteValues(code string, invite Invite, app *appContext
expiry := invite . ValidTill
expiry := invite . ValidTill
d , t , expiresIn := emailer . formatExpiry ( expiry , false , app . datePattern , app . timePattern )
d , t , expiresIn := emailer . formatExpiry ( expiry , false , app . datePattern , app . timePattern )
message := app . config . Section ( "messages" ) . Key ( "message" ) . String ( )
message := app . config . Section ( "messages" ) . Key ( "message" ) . String ( )
inviteLink := fmt . Sprintf ( "%s/invite/%s" , app . External Host , code )
inviteLink := fmt . Sprintf ( "%s/invite/%s" , app . External URI , code )
template := map [ string ] interface { } {
template := map [ string ] interface { } {
"hello" : emailer . lang . InviteEmail . get ( "hello" ) ,
"hello" : emailer . lang . InviteEmail . get ( "hello" ) ,
"youHaveBeenInvited" : emailer . lang . InviteEmail . get ( "youHaveBeenInvited" ) ,
"youHaveBeenInvited" : emailer . lang . InviteEmail . get ( "youHaveBeenInvited" ) ,