mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	update: more secure path
This commit is contained in:
		| @@ -107,7 +107,8 @@ class ConfigController extends Controller | ||||
|                 'currency_symbol' => config('v2board.currency_symbol', '¥'), | ||||
|                 'register_limit_by_ip_enable' => (int)config('v2board.register_limit_by_ip_enable', 0), | ||||
|                 'register_limit_count' => config('v2board.register_limit_count', 3), | ||||
|                 'register_limit_expire' => config('v2board.register_limit_expire', 60) | ||||
|                 'register_limit_expire' => config('v2board.register_limit_expire', 60), | ||||
|                 'secure_path' => config('v2board.secure_path', config('v2board.frontend_admin_path', 'admin')) | ||||
|             ], | ||||
|             'subscribe' => [ | ||||
|                 'plan_change_enable' => (int)config('v2board.plan_change_enable', 1), | ||||
| @@ -124,7 +125,6 @@ class ConfigController extends Controller | ||||
|                 'frontend_theme_header' => config('v2board.frontend_theme_header', 'dark'), | ||||
|                 'frontend_theme_color' => config('v2board.frontend_theme_color', 'default'), | ||||
|                 'frontend_background_url' => config('v2board.frontend_background_url'), | ||||
|                 'frontend_admin_path' => config('v2board.frontend_admin_path', 'admin') | ||||
|             ], | ||||
|             'server' => [ | ||||
|                 'server_token' => config('v2board.server_token'), | ||||
|   | ||||
| @@ -46,6 +46,7 @@ class ConfigSave extends FormRequest | ||||
|         'register_limit_by_ip_enable' => 'in:0,1', | ||||
|         'register_limit_count' => 'integer', | ||||
|         'register_limit_expire' => 'integer', | ||||
|         'secure_path' => '', | ||||
|         // subscribe | ||||
|         'plan_change_enable' => 'in:0,1', | ||||
|         'reset_traffic_method' => 'in:0,1,2,3,4', | ||||
| @@ -64,7 +65,6 @@ class ConfigSave extends FormRequest | ||||
|         'frontend_theme_header' => 'in:dark,light', | ||||
|         'frontend_theme_color' => 'in:default,darkblue,black,green', | ||||
|         'frontend_background_url' => 'nullable|url', | ||||
|         'frontend_admin_path' => '', | ||||
|         // email | ||||
|         'email_template' => '', | ||||
|         'email_host' => '', | ||||
|   | ||||
| @@ -8,7 +8,7 @@ class AdminRoute | ||||
|     public function map(Registrar $router) | ||||
|     { | ||||
|         $router->group([ | ||||
|             'prefix' => 'admin', | ||||
|             'prefix' => config('v2board.secure_path', config('v2board.frontend_admin_path', 'admin')), | ||||
|             'middleware' => 'admin' | ||||
|         ], function ($router) { | ||||
|             // Config | ||||
|   | ||||
		Reference in New Issue
	
	Block a user