Tokumeikoi 5 years ago
parent
commit
b61e641dad

+ 4 - 0
app/Http/Controllers/Admin/ConfigController.php

@@ -65,6 +65,10 @@ class ConfigController extends Controller
                 ],
                 'tutorial' => [
                     'apple_id' => config('v2board.apple_id')
+                ],
+                'lab' => [
+                    'auth_type' => (int)config('v2board.auth_type', 1),
+                    'auth_salt' => config('v2board.auth_salt')
                 ]
             ]
         ]);

+ 4 - 1
app/Http/Requests/Admin/ConfigSave.php

@@ -47,7 +47,10 @@ class ConfigSave extends FormRequest
         'frontend_background_url' => 'nullable|url',
         // tutorial
         'apple_id' => 'email',
-        'apple_id_password' => ''
+        'apple_id_password' => '',
+        // lab
+        'auth_type' => 'in:1,2',
+        'auth_salt' => ''
     ];
 
     public static function filter()