]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Error I made merging a diff
authorMike Cochrane <mikec@mikenz.geek.nz>
Sat, 12 Jul 2008 12:39:42 +0000 (08:39 -0400)
committerMike Cochrane <mikec@mikenz.geek.nz>
Sat, 12 Jul 2008 12:39:42 +0000 (08:39 -0400)
darcs-hash:20080712123942-533db-21fa41076dd7b57935f49462423f247ccbb01e8f.gz

actions/register.php

index 37e787c9d05562fd36f711a32c3c4ba3fe043ee5..aacc4fa7b4e3e532f441d29cfa53d71fce7f45bc 100644 (file)
@@ -63,7 +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 {
+               } else if ($this->register_user($nickname, $password, $email)) {
                        $user = $this->register_user($nickname, $password, $email);
                        if (!$user) {
                                $this->show_form(_('Invalid username or password.'));