]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed non openid registration
authorMike Cochrane <mikec@mikenz.geek.nz>
Sun, 13 Jul 2008 02:47:54 +0000 (22:47 -0400)
committerMike Cochrane <mikec@mikenz.geek.nz>
Sun, 13 Jul 2008 02:47:54 +0000 (22:47 -0400)
darcs-hash:20080713024754-533db-af3dbd6186df4ce27caa7c25d0752d3e7afa184a.gz

actions/register.php

index aacc4fa7b4e3e532f441d29cfa53d71fce7f45bc..28b122bc98a2275df547e5f469f5ddedf0994ac1 100644 (file)
@@ -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;