]> BookStack Code Mirror - bookstack/blobdiff - app/Providers/AuthServiceProvider.php
Guest create page: name field autofocus
[bookstack] / app / Providers / AuthServiceProvider.php
index b301604a519e9b95e5bf5881f7a93c0f78cfb88e..5e16179ab27c60ff878451f35868a75d9013c662 100644 (file)
@@ -23,9 +23,8 @@ class AuthServiceProvider extends ServiceProvider
     public function boot()
     {
         // Password Configuration
-        Password::defaults(function () {
-            return Password::min(8);
-        });
+        // Changes here must be reflected in ApiDocsGenerate@getValidationAsString.
+        Password::defaults(fn () => Password::min(8));
 
         // Custom guards
         Auth::extend('api-token', function ($app, $name, array $config) {