Fixed non openid registration
darcs-hash:20080713024754-533db-af3dbd6186df4ce27caa7c25d0752d3e7afa184a.gz
This commit is contained in:
parent
11df464ec4
commit
800c2e9a09
@ -63,8 +63,7 @@ class RegisterAction extends Action {
|
|||||||
$this->show_form(_('Email address already exists.'));
|
$this->show_form(_('Email address already exists.'));
|
||||||
} else if ($password != $confirm) {
|
} else if ($password != $confirm) {
|
||||||
$this->show_form(_('Passwords don\'t match.'));
|
$this->show_form(_('Passwords don\'t match.'));
|
||||||
} else if ($this->register_user($nickname, $password, $email)) {
|
} else if ($user = $this->register_user($nickname, $password, $email)) {
|
||||||
$user = $this->register_user($nickname, $password, $email);
|
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
$this->show_form(_('Invalid username or password.'));
|
$this->show_form(_('Invalid username or password.'));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user