welcome to mnml

This commit is contained in:
ntr
2019-08-26 18:43:05 +10:00
parent 6ff292ff3c
commit 65514f576a
12 changed files with 447 additions and 182 deletions
+7 -3
View File
@@ -42,10 +42,13 @@ pub enum Mail {
fn recover(email: &String, name: &String, token: &String) -> SendableEmail {
let body = format!("{:},
the link below will recover your account.
please change your password immediately in the account page
please change your password immediately in the account page.
this link will expire in 48 hours or once used.
http://mnml.gg/api/account/recover?recover_token={:}
glhf", name, token);
glhf
--mnml", name, token);
Email::builder()
.from("machines@mnml.gg")
@@ -62,7 +65,8 @@ fn confirm(email: &String, name: &String, token: &String) -> SendableEmail {
please click the link below to confirm your email
http://mnml.gg/api/account/email/confirm?confirm_token={:}
glhf", name, token);
glhf
--mnml", name, token);
Email::builder()
.from("machines@mnml.gg")