mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
再次更改网站跳转百度逻辑 & 修改默认用户属性减少demo站的被玩坏率
This commit is contained in:
@@ -188,7 +188,7 @@ class UserController extends Controller
|
||||
|
||||
// 非演示环境才可以修改管理员密码
|
||||
$password = $request->input('password');
|
||||
if (! empty($password) && ! (env('APP_DEMO') && $user->id === 1)) {
|
||||
if (! empty($password) && ! (config('app.demo') && $user->id === 1)) {
|
||||
$data['password'] = $password;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user