]> BookStack Code Mirror - bookstack/blobdiff - app/Users/Controllers/RoleController.php
Tests: Updated comment test to account for new editor usage
[bookstack] / app / Users / Controllers / RoleController.php
index a874ce4d60fc6e207579148be1fdd1104ca605c0..0a7fdcc9ba87b28903b9328290c2002194ad9847 100644 (file)
@@ -75,7 +75,7 @@ class RoleController extends Controller
         $data = $this->validate($request, [
             'display_name' => ['required', 'min:3', 'max:180'],
             'description'  => ['max:180'],
-            'external_auth_id' => ['string'],
+            'external_auth_id' => ['string', 'max:180'],
             'permissions'  => ['array'],
             'mfa_enforced' => ['string'],
         ]);
@@ -109,7 +109,7 @@ class RoleController extends Controller
         $data = $this->validate($request, [
             'display_name' => ['required', 'min:3', 'max:180'],
             'description'  => ['max:180'],
-            'external_auth_id' => ['string'],
+            'external_auth_id' => ['string', 'max:180'],
             'permissions'  => ['array'],
             'mfa_enforced' => ['string'],
         ]);