diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 5fa62a3730..491a371eb0 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -71,7 +71,14 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e : ID::custom($userId); if ($project->getAttribute('auths', [])['personalDataCheck'] ?? false) { - $personalDataValidator = new PersonalData($userId, $email, $name, $phone, false, true); + $personalDataValidator = new PersonalData( + $userId, + $email, + $name, + $phone, + strict: false, + allowEmpty: true + ); if (!$personalDataValidator->isValid($plaintextPassword)) { throw new Exception(Exception::USER_PASSWORD_PERSONAL_DATA); }