Better email title + translation
This commit is contained in:
parent
c7b6f58655
commit
9874497469
5 changed files with 18 additions and 3 deletions
|
|
@ -152,6 +152,7 @@ pub async fn sign_up_post(
|
|||
let email = form_data.email.clone();
|
||||
match email::send_email(
|
||||
&email,
|
||||
context.tr.t(Sentence::SignUpEmailTitle),
|
||||
&context.tr.tp(
|
||||
Sentence::SignUpFollowEmailLink,
|
||||
&[Box::new(format!(
|
||||
|
|
@ -481,6 +482,7 @@ pub async fn ask_reset_password_post(
|
|||
let url = utils::get_url_from_host(&host);
|
||||
match email::send_email(
|
||||
&form_data.email,
|
||||
context.tr.t(Sentence::AskResetEmailTitle),
|
||||
&context.tr.tp(
|
||||
Sentence::AskResetFollowEmailLink,
|
||||
&[Box::new(format!(
|
||||
|
|
@ -793,6 +795,7 @@ pub async fn edit_user_post(
|
|||
let email = form_data.email.clone();
|
||||
match email::send_email(
|
||||
&email,
|
||||
context.tr.t(Sentence::ProfileFollowEmailTitle),
|
||||
&context.tr.tp(
|
||||
Sentence::ProfileFollowEmailLink,
|
||||
&[Box::new(format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue