set nickname correctly
darcs-hash:20080618061117-84dde-6983ed79c2d0e985fc8b00ac7c270b46d92bc20d.gz
This commit is contained in:
parent
21463458c5
commit
94c4262dcf
|
@ -278,6 +278,7 @@ class FinishopenidloginAction extends Action {
|
|||
$profile->delete();
|
||||
}
|
||||
|
||||
common_set_user($user->nickname);
|
||||
common_redirect(common_local_url('profilesettings'));
|
||||
}
|
||||
|
||||
|
@ -335,8 +336,12 @@ class FinishopenidloginAction extends Action {
|
|||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user