diff --git a/src/controllers/users_controller.rs b/src/controllers/users_controller.rs index e9886c0..0deece3 100644 --- a/src/controllers/users_controller.rs +++ b/src/controllers/users_controller.rs @@ -319,20 +319,6 @@ pub async fn reject<'r>( ))); } - mailer - .create( - &user, - String::from("[Zauth] Your account has been rejected"), - template!( - "mails/user_rejected.txt"; - name: String = user.full_name.to_string(), - admin_email: String = conf.admin_email.clone() - ) - .render() - .map_err(InternalError::from)?, - ) - .await?; - user.delete(&db).await?; Ok(Accepter { @@ -444,7 +430,7 @@ pub fn reset_password_get<'r>(token: String) -> impl Responder<'r, 'static> { #[derive(Debug, FromForm)] pub struct PasswordReset { - token: String, + token: String, new_password: String, } diff --git a/templates/mails/user_rejected.txt b/templates/mails/user_rejected.txt deleted file mode 100644 index 9f8bf42..0000000 --- a/templates/mails/user_rejected.txt +++ /dev/null @@ -1,7 +0,0 @@ -Hi {{name}} - -Your registration request for a Zeus account has been rejected. -If you think this is a mistake you can contact us at {{admin_email}}. - -Kind regards -The Zeus Authentication Server