summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorTimshel <[email protected]>2024-08-17 22:48:59 +0200
committerGitHub <[email protected]>2024-08-17 22:48:59 +0200
commit3466a8040e33c8ac359fed99f3542ed5ed6603fa (patch)
treefc1609a5269985eb9cb13bfb6dde306e6bc5dbce /src/api
parent7d47155d83e6c47784b18e8293a5a47d3d87d0ea (diff)
downloadvaultwarden-3466a8040e33c8ac359fed99f3542ed5ed6603fa.tar.gz
vaultwarden-3466a8040e33c8ac359fed99f3542ed5ed6603fa.zip
Remove unecessary email normalization (#4840)
Diffstat (limited to 'src/api')
-rw-r--r--src/api/core/two_factor/duo.rs4
1 files changed, 0 insertions, 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!(