wip
This commit is contained in:
@ -350,6 +350,10 @@ class Forms extends Check {
|
||||
self::addUserError( 'Invalid username.' );
|
||||
return false;
|
||||
}
|
||||
if ( $user->usernameExists( Input::post( 'username' ) ) ) {
|
||||
self::addUserError( 'A user with that username is already registered.' );
|
||||
return false;
|
||||
}
|
||||
if ( !self::password( Input::post( 'password' ) ) ) {
|
||||
self::addUserError( 'Invalid password.' );
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user