diff options
author | Dessalines <tyhou13@gmx.com> | 2019-11-02 13:07:19 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-11-02 13:07:19 -0700 |
commit | 3021d19e1fe4306ce6c993a9b810957c4fe9819b (patch) | |
tree | d2261f7987439b0c6a4e086ce863042f9cf977c7 /server/src/api/user.rs | |
parent | e8ce11cc2fcc68df84548241bcbe720f86c13de8 (diff) |
Fixing ansible build, and email link.
Diffstat (limited to 'server/src/api/user.rs')
-rw-r--r-- | server/src/api/user.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/api/user.rs b/server/src/api/user.rs index 50d3feb7..e15563b0 100644 --- a/server/src/api/user.rs +++ b/server/src/api/user.rs @@ -847,7 +847,7 @@ impl Perform<PasswordResetResponse> for Oper<PasswordReset> { // TODO no i18n support here. let user_email = &user.email.expect("email"); let subject = &format!("Password reset for {}", user.name); - let hostname = Settings::get().hostname; + let hostname = &format!("https://{}", Settings::get().hostname); //TODO add https for now. let html = &format!("<h1>Password Reset Request for {}</h1><br><a href={}/password_change/{}>Click here to reset your password</a>", user.name, hostname, &token); match send_email(subject, user_email, &user.name, html) { Ok(_o) => _o, |