diff --git a/lib/Service/RecoveryEmailService.php b/lib/Service/RecoveryEmailService.php index dc4aad621023d21298c5336c83edafdd2c5965cd..d4b7c7f6bb9adabcb8989e7784786b81ad5407dd 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; }