diff options
author | mkanat%bugzilla.org <> | 2006-07-29 05:35:10 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-29 05:35:10 +0200 |
commit | 6010f04049afc0df105efa7715e4d0631386d49c (patch) | |
tree | 677bcb2708e53fb9f746a8fa789dc4cff6d56792 /Bugzilla | |
parent | b07bd7dcd718ed4a9a04d8010b74100d864c80bc (diff) | |
download | bugzilla-6010f04049afc0df105efa7715e4d0631386d49c.tar.gz bugzilla-6010f04049afc0df105efa7715e4d0631386d49c.tar.xz |
Bug 346245: attribute parameter 'johndoe@company.tld' is not a hash ref at Bugzilla/Auth/Verify.pm line 112
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Auth/Verify.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Auth/Verify.pm b/Bugzilla/Auth/Verify.pm index 68a20f6df..952998caf 100644 --- a/Bugzilla/Auth/Verify.pm +++ b/Bugzilla/Auth/Verify.pm @@ -102,7 +102,7 @@ sub create_or_update_user { # Now that we have a valid User, we need to see if any data has to be # updated. - if ($username && $user->login ne $username) { + if ($username && lc($user->login) ne lc($username)) { validate_email_syntax($username) || return { failure => AUTH_ERROR, error => 'auth_invalid_email', details => {addr => $username} }; @@ -110,7 +110,7 @@ sub create_or_update_user { # placeholder, and we've already validated it, so it's safe. trick_taint($username); $dbh->do('UPDATE profiles SET login_name = ? WHERE userid = ?', - $username, $user->id); + undef, $username, $user->id); } if ($real_name && $user->name ne $real_name) { # $real_name is more than likely tainted, but we only use it |