From 38750e66e1e7a53cf15f3f477327fadb1db5c586 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Thu, 15 May 2025 11:28:33 +0200 Subject: [PATCH] mails should be case insensitive --- lib/Service/RecoveryEmailService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/RecoveryEmailService.php b/lib/Service/RecoveryEmailService.php index dc4aad6..d4b7c7f 100644 --- a/lib/Service/RecoveryEmailService.php +++ b/lib/Service/RecoveryEmailService.php @@ -336,12 +336,12 @@ class RecoveryEmailService { return false; } - $usersWithEmailRecovery = $this->config->getUsersForUserValue($this->appName, 'recovery-email', $recoveryEmail); + $usersWithEmailRecovery = $this->config->getUsersForUserValueCaseInsensitive($this->appName, 'recovery-email', $recoveryEmail); if (count($usersWithEmailRecovery)) { return true; } - $usersWithUnverifiedRecovery = $this->config->getUsersForUserValue($this->appName, 'unverified-recovery-email', $recoveryEmail); + $usersWithUnverifiedRecovery = $this->config->getUsersForUserValueCaseInsensitive($this->appName, 'unverified-recovery-email', $recoveryEmail); if (count($usersWithUnverifiedRecovery)) { return true; } -- GitLab