From 466756061fce2d877361bd89b7845826059fc330 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Wed, 2 Sep 2015 16:20:13 -0400 Subject: [PATCH] LP#1491571: Ignore Case when Checking PW Reset email Emails are not passwords and are not case sensitive; while it is a good idea to require patrons to prove they know the address associated with their account it is not cool to deny them because they don't know the capitalization of the value in the database. Signed-off-by: Jason Boyer Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm index 2d7c5d6e0b..80da51b5ee 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm @@ -3929,7 +3929,7 @@ sub request_password_reset { my $email_must_match = $U->ou_ancestor_setting_value($user->home_ou, 'circ.password_reset_request_requires_matching_email'); if ($email_must_match) { - if ($user->email ne $email) { + if (lc($user->email) ne lc($email)) { return OpenILS::Event->new('EMAIL_VERIFICATION_FAILED'); } } -- 2.43.2