We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 94c4262d authored by Evan Prodromou's avatar Evan Prodromou

set nickname correctly

darcs-hash:20080618061117-84dde-6983ed79c2d0e985fc8b00ac7c270b46d92bc20d.gz
parent 21463458
......@@ -278,6 +278,7 @@ class FinishopenidloginAction extends Action {
$profile->delete();
}
common_set_user($user->nickname);
common_redirect(common_local_url('profilesettings'));
}
......@@ -334,9 +335,13 @@ class FinishopenidloginAction extends Action {
function best_new_nickname($display, $sreg) {
# Try the passed-in nickname
if ($sreg['nickname'] && $this->is_new_nickname($sreg['nickname'])) {
return $sreg['nickname'];
if ($sreg['nickname']) {
$nickname = $this->nicknamize($sreg['nickname']);
if ($this->is_new_nickname($nickname)) {
return $nickname;
}
}
# Try the full name
......
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