diff options
Diffstat (limited to 'application/controllers/user.php')
-rw-r--r-- | application/controllers/user.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php index af908a63d..29d9eaeeb 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -152,6 +152,10 @@ class User extends CI_Controller { $error[]= "Invalid email."; } + if ($this->muser->username_exists($username)) { + $error[] = "Username already exists."; + } + if (!$password || $password != $password_confirm) { $error[]= "No password or passwords don't match."; } |