X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b35b62d59ff057ce5cfbc5fb463431b086f5c830..refs/pull/5349/head:/app/Users/Controllers/UserApiController.php diff --git a/app/Users/Controllers/UserApiController.php b/app/Users/Controllers/UserApiController.php index 6ee8f16d1..c84f1531d 100644 --- a/app/Users/Controllers/UserApiController.php +++ b/app/Users/Controllers/UserApiController.php @@ -37,7 +37,7 @@ class UserApiController extends ApiController { return [ 'create' => [ - 'name' => ['required', 'string', 'min:2', 'max:100'], + 'name' => ['required', 'string', 'min:1', 'max:100'], 'email' => [ 'required', 'string', 'email', 'min:2', new Unique('users', 'email'), ], @@ -49,7 +49,7 @@ class UserApiController extends ApiController 'send_invite' => ['boolean'], ], 'update' => [ - 'name' => ['string', 'min:2', 'max:100'], + 'name' => ['string', 'min:1', 'max:100'], 'email' => [ 'string', 'email',