]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/MfaBackupCodesController.php
Added test for logical-theme-system command registration
[bookstack] / app / Http / Controllers / Auth / MfaBackupCodesController.php
index d92029bf1b7f326924558c21824b168b6d3583d8..e240900229983e5834f47ddc035517f26dce1396 100644 (file)
@@ -73,8 +73,7 @@ class MfaBackupCodesController extends Controller
 
         $this->validate($request, [
             'code' => [
-                'required',
-                'max:12', 'min:8',
+                'required', 'max:12', 'min:8',
                 function ($attribute, $value, $fail) use ($codeService, $codes) {
                     if (!$codeService->inputCodeExistsInSet($value, $codes)) {
                         $fail(trans('validation.backup_codes'));