[更新]禁止修改用户密码

This commit is contained in:
Anyon 2018-03-13 20:26:46 +08:00
parent 70d7ac0aaa
commit 4e1aa1ec50

View File

@ -15,12 +15,15 @@
use think\facade\Route;
/* 去除下面注释可启用禁用功能 */
return [];
//return [];
/* 测试环境禁止操作路由绑定 */
Route::post('admin/user/pass', function () {
return json(['code' => 0, 'msg' => '测试环境禁修改用户密码!']);
});
Route::post('admin/index/pass', function () {
return json(['code' => 0, 'msg' => '测试环境禁修改用户密码!']);
});
Route::post('admin/config/index', function () {
return json(['code' => 0, 'msg' => '测试环境禁修改系统配置操作!']);
});