From 8e685b90648581e1f50fd6756813025a47f62cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> Date: Mon, 3 Feb 2025 22:57:30 +0300 Subject: [PATCH] feat: :sparkles: enable sending mail --- src/feature/auth.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/feature/auth.rs b/src/feature/auth.rs index 6944013..4140123 100644 --- a/src/feature/auth.rs +++ b/src/feature/auth.rs @@ -5,7 +5,7 @@ use tokio::sync::RwLock; use crate::{ error::ForumMailError, - //mail::{MailFieldsOneTimePassword, MailTemplate}, + mail::{MailFieldsOneTimePassword, MailTemplate}, }; use super::user::User; @@ -38,11 +38,9 @@ impl OneTimePassword { one_time_password, }; - //todo vice versa comments :D - // let mail_template = - // MailTemplate::OneTimePassword(MailFieldsOneTimePassword::new(&user.name, &new_self)); - println!("{}", user_email); - //mail_template.send_mail(user_email).await?; + let mail_template = + MailTemplate::OneTimePassword(MailFieldsOneTimePassword::new(&user.name, &new_self)); + mail_template.send_mail(user_email).await?; let mut one_time_passwords = ONE_TIME_PASSWORDS.write().await; one_time_passwords.push(new_self);