fix: 系统设置保存后邀请码消失
This commit is contained in:
parent
bdf4222d70
commit
b04fd1a937
@ -50,7 +50,7 @@ class SystemController extends AbstractController
|
||||
$setting = Base::setting('system');
|
||||
}
|
||||
//
|
||||
if ($type == 'all') {
|
||||
if ($type == 'all' || $type == 'save') {
|
||||
User::auth('admin');
|
||||
$setting['reg_invite'] = $setting['reg_invite'] ?: Base::generatePassword(8);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user