diff --git a/src/modules/welcome/controller/password_reset.rs b/src/modules/welcome/controller/password_reset.rs index 3e36305..1a51a17 100644 --- a/src/modules/welcome/controller/password_reset.rs +++ b/src/modules/welcome/controller/password_reset.rs @@ -15,7 +15,7 @@ pub struct PasswortResetMail{ /// Checks if email belongs to user, if so resets password pub fn request_password_reset(settings: &State, mt: &State, mq: &State>, email: String) -> Result<(), ()>{ - let user = match get_user_by_email(email.clone().to_ascii_lowercase(), settings){ //Check if email belongs to user, if not return + let user = match get_user_by_email(email.clone(), settings){ //Check if email belongs to user, if not return Some(user) => user, None => return Ok(()), };