This commit is contained in:
Joey Kimsey
2025-02-25 13:38:08 -05:00
parent 20f2f059a1
commit 15875d1fa3
6 changed files with 48 additions and 8 deletions

View File

@ -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;