Skip to content

Commit

Permalink
Try lowercase email on password reset, fixes #5807
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel committed Oct 8, 2021
1 parent 9a24a2f commit 527e317
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cgi/reset_password.pl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@

if ($id =~ /\@/) {
my $emails_ref = retrieve("$data_root/users_emails.sto");
if (not defined $emails_ref->{$id}) {
# not found, try with lower case email
$id = lc $id;
}
if (not defined $emails_ref->{$id}) {
push @errors, $Lang{error_reset_unknown_email}{$lang};
}
Expand Down

0 comments on commit 527e317

Please sign in to comment.