Bug 177449: When changing email address, old email address confirmation was case sensitive

patch by Vlad Dascalu <jocuri@softhome.net> r= kiko, a= justdave
parent 0a3283b8
......@@ -229,7 +229,7 @@ sub changeEmail {
my $quotednewemail = SqlQuote($new_email);
# Check the user entered the correct old email address
if($::FORM{'email'} ne $old_email) {
if(lc($::FORM{'email'}) ne lc($old_email)) {
ThrowUserError("email_confirmation_failed");
}
# The new email address should be available as this was
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment