Add 2FA icon to admin panel

This commit is contained in:
Daniel García committed 2019-01-25 18:50:57 +01:00
1 parent a1dc47b826
commit 700e084101
4 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ pub fn send_invite_confirmed(address: &str, org_name: &str, config: &MailConfig)
fn send_email(address: &str, subject: &str, body: &str, config: &MailConfig) -> EmptyResult {
let email = EmailBuilder::new()
.to(address)
.from((config.smtp_from.clone(), config.smtp_from_name.clone()))
.from((config.smtp_from.as_str(), config.smtp_from_name.as_str()))
.subject(subject)
.header(("Content-Type", "text/html"))
.body(body)