mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
!37 存在安全隐患
Merge pull request !37 from coffee/v6 在可以登录的前提并了解系统的提前下,确认可以修改权限,感谢反馈。
This commit is contained in:
commit
1cbc5c1f6d
@ -77,7 +77,20 @@ class Index extends Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 表单数据处理
|
||||
* @param array $data
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
*/
|
||||
protected function _form_filter(array &$data)
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
unset($data['username']);
|
||||
unset($data['authorize']);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 修改用户资料
|
||||
* @login true
|
||||
|
Loading…
x
Reference in New Issue
Block a user