wip
This commit is contained in:
@ -358,6 +358,10 @@ class Forms extends Check {
|
||||
self::addUserError( 'Invalid Email.' );
|
||||
return false;
|
||||
}
|
||||
if ( $user->usernameExists( Input::post( 'username' ) ) ) {
|
||||
self::addUserError( 'A user with that username is already registered.' );
|
||||
return false;
|
||||
}
|
||||
if ( !$user->noEmailExists( Input::post( 'email' ) ) ) {
|
||||
self::addUserError( 'A user with that email is already registered.' );
|
||||
return false;
|
||||
@ -374,7 +378,7 @@ class Forms extends Check {
|
||||
self::addUserError( 'You must agree to the terms of service.' );
|
||||
return false;
|
||||
}
|
||||
if ( !self::token() ) {
|
||||
if ( ! self::token() ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user