Commit 45f67203 authored by Hugo's avatar Hugo Committed by Frédéric Buclin

Bug 298461: editusers.cgi does not allow you to change only the letter-case of an email address

r/a=LpSolit
parent 343358ab
...@@ -203,7 +203,7 @@ sub check_login_name { ...@@ -203,7 +203,7 @@ sub check_login_name {
check_email_syntax($name); check_email_syntax($name);
# Check the name if it's a new user, or if we're changing the name. # Check the name if it's a new user, or if we're changing the name.
if (!ref($invocant) || $invocant->login ne $name) { if (!ref($invocant) || lc($invocant->login) ne lc($name)) {
my @params = ($name); my @params = ($name);
push(@params, $invocant->login) if ref($invocant); push(@params, $invocant->login) if ref($invocant);
is_available_username(@params) is_available_username(@params)
......
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