添加验证码、用户登录界面、修改权限验证
This commit is contained in:
1 parent
9fba3393ee
commit
eb68505fb8
47 files changed
+809
-39
No files matched your search
@@ -12,15 +12,17 @@ class YanZheng extends Controller
|
||||
// 实例化权限验证类
|
||||
$auth = new \php4world\Auth();
|
||||
|
||||
$act = $request->action();
|
||||
$cnt = $request->controller();
|
||||
$mod = $request->module();
|
||||
$url = $mod.'/'.$cnt.'/'.$act;
|
||||
|
||||
|
||||
if( $auth->check('student', '1') ){// 第一个参数是规则名称,第二个参数是用户UID
|
||||
dump('验证通过');
|
||||
}else{
|
||||
if( !$auth->check($url, '1') ){// 第一个参数是规则名称,第二个参数是用户UID
|
||||
dump('验证不通过');
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,6 @@ class Index extends Base
|
||||
$sysbasemod->title = '学生成绩统计系统';
|
||||
$sysbasemod->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
<div class="container">
|
||||
<p>感谢{$list.thinks}<br>
|
||||
Copyright ©{$list.copyright} {$list.title} v{$list.version} All Rights Reserved.<br>
|
||||
本系统由大连长兴岛经济区教研科研培训中心提供技术支持</p>
|
||||
本系统由 大连长兴岛经济区教研科研培训中心 提供技术支持</p>
|
||||
</div>
|
||||
</footer>
|
||||
<!--_footer 作为公共模版分离出去-->
|
||||
|
||||
Loaded 3 of 47 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user