diff --git a/app/Http/Controllers/Admin/ConfigController.php b/app/Http/Controllers/Admin/ConfigController.php index 467a2f48..56bb1fbf 100755 --- a/app/Http/Controllers/Admin/ConfigController.php +++ b/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') ] ] ]); diff --git a/app/Http/Requests/Admin/ConfigSave.php b/app/Http/Requests/Admin/ConfigSave.php index 76fae1fd..ba3ceeb3 100755 --- a/app/Http/Requests/Admin/ConfigSave.php +++ b/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()