1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-06-25 08:45:41 +02:00

Better message into the password hint email

Dieser Commit ist enthalten in:
Jean-Christophe BEGUE 2018-08-15 10:17:05 +02:00
Ursprung 812387e586
Commit 19e0605d30

Datei anzeigen

@ -32,11 +32,17 @@ fn mailer(config: &MailConfig) -> SmtpTransport {
}
pub fn send_password_hint(address: &str, hint: &str, config: &MailConfig) -> Result<(), String> {
let body = format!(
"You (or someone) recently requested your master password hint.\n\n\
Your hint is: \"{}\"\n\n\
If you did not request your master password hint you can safely ignore this email.\n",
hint);
let email = EmailBuilder::new()
.to(address)
.from((config.smtp_from.to_owned(), "Bitwarden-rs"))
.subject("Your Master Password Hint")
.body(hint)
.body(body)
.build().unwrap();
match mailer(config).send(&email) {