From: Mike Cochrane Date: Sun, 13 Jul 2008 02:47:54 +0000 (-0400) Subject: Fixed non openid registration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=800c2e9a094681eff82aacdba6e5d22d547c4950;p=quix0rs-gnu-social.git Fixed non openid registration darcs-hash:20080713024754-533db-af3dbd6186df4ce27caa7c25d0752d3e7afa184a.gz --- diff --git a/actions/register.php b/actions/register.php index aacc4fa7b4..28b122bc98 100644 --- a/actions/register.php +++ b/actions/register.php @@ -63,8 +63,7 @@ class RegisterAction extends Action { $this->show_form(_('Email address already exists.')); } else if ($password != $confirm) { $this->show_form(_('Passwords don\'t match.')); - } else if ($this->register_user($nickname, $password, $email)) { - $user = $this->register_user($nickname, $password, $email); + } else if ($user = $this->register_user($nickname, $password, $email)) { if (!$user) { $this->show_form(_('Invalid username or password.')); return;