mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 23:49:09 +08:00
add email whitelist config
This commit is contained in:
parent
98e23be297
commit
f61e37aeaf
@ -8,11 +8,6 @@ use App\Http\Controllers\Controller;
|
|||||||
|
|
||||||
class ConfigController extends Controller
|
class ConfigController extends Controller
|
||||||
{
|
{
|
||||||
public function init()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function fetch()
|
public function fetch()
|
||||||
{
|
{
|
||||||
return response([
|
return response([
|
||||||
@ -34,7 +29,8 @@ class ConfigController extends Controller
|
|||||||
'plan_transfer_hour' => config('v2board.plan_transfer_hour', 12),
|
'plan_transfer_hour' => config('v2board.plan_transfer_hour', 12),
|
||||||
'try_out_plan_id' => (int)config('v2board.try_out_plan_id', 0),
|
'try_out_plan_id' => (int)config('v2board.try_out_plan_id', 0),
|
||||||
'try_out_hour' => (int)config('v2board.try_out_hour', 1),
|
'try_out_hour' => (int)config('v2board.try_out_hour', 1),
|
||||||
'email_suffix_blacklist' => config('v2board.email_suffix_blacklist')
|
'email_whitelist_enable' => (int)config('v2board.email_whitelist_enable', 0),
|
||||||
|
'email_whitelist_suffix' => config('v2board.email_whitelist_suffix')
|
||||||
],
|
],
|
||||||
'pay' => [
|
'pay' => [
|
||||||
// alipay
|
// alipay
|
||||||
|
@ -22,7 +22,8 @@ class ConfigSave extends FormRequest
|
|||||||
'try_out_enable' => 'in:0,1',
|
'try_out_enable' => 'in:0,1',
|
||||||
'try_out_plan_id' => 'integer',
|
'try_out_plan_id' => 'integer',
|
||||||
'try_out_hour' => 'numeric',
|
'try_out_hour' => 'numeric',
|
||||||
'email_suffix_blacklist' => '',
|
'email_whitelist_enable' => 'in:0,1',
|
||||||
|
'email_suffix_whitelist' => '',
|
||||||
// server
|
// server
|
||||||
'server_token' => 'nullable|min:16',
|
'server_token' => 'nullable|min:16',
|
||||||
'server_license' => 'nullable',
|
'server_license' => 'nullable',
|
||||||
|
Loading…
Reference in New Issue
Block a user