Commit b1fe1ec6 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 337661: LDAP user login failure: Can't locate object method "realname" via…

Bug 337661: LDAP user login failure: Can't locate object method "realname" via package "Bugzilla::User" - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit a=justdave
parent 14a992f3
...@@ -109,7 +109,7 @@ sub create_or_update_user { ...@@ -109,7 +109,7 @@ sub create_or_update_user {
$dbh->do('UPDATE profiles SET login_name = ? WHERE userid = ?', $dbh->do('UPDATE profiles SET login_name = ? WHERE userid = ?',
$username, $user->id); $username, $user->id);
} }
if ($real_name && $user->realname ne $real_name) { if ($real_name && $user->name ne $real_name) {
$dbh->do('UPDATE profiles SET realname = ? WHERE userid = ?', $dbh->do('UPDATE profiles SET realname = ? WHERE userid = ?',
undef, $real_name, $user->id); undef, $real_name, $user->id);
} }
......
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