From 3466a8040e33c8ac359fed99f3542ed5ed6603fa Mon Sep 17 00:00:00 2001 From: Timshel Date: Sat, 17 Aug 2024 22:48:59 +0200 Subject: [PATCH] Remove unecessary email normalization (#4840) --- src/api/core/two_factor/duo.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/api/core/two_factor/duo.rs b/src/api/core/two_factor/duo.rs index 3993397c..6de2935d 100644 --- a/src/api/core/two_factor/duo.rs +++ b/src/api/core/two_factor/duo.rs @@ -281,10 +281,6 @@ fn sign_duo_values(key: &str, email: &str, ikey: &str, prefix: &str, expire: i64 } pub async fn validate_duo_login(email: &str, response: &str, conn: &mut DbConn) -> EmptyResult { - // email is as entered by the user, so it needs to be normalized before - // comparison with auth_user below. - let email = &email.to_lowercase(); - let split: Vec<&str> = response.split(':').collect(); if split.len() != 2 { err!(