添加验证码、用户登录界面、修改权限验证

This commit is contained in:
cxdbz committed 2018-10-13 22:10:47 +08:00
1 parent 9fba3393ee
commit eb68505fb8
47 files changed
+809 -39

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
<?php
namespace app\login\controller;
// 引用控制器类
use think\Controller;
// 引用用户数据模型
use app\member\model\Member as membermod;
class Index extends Controller
{
// 显示登录界面
public function index()
{
// 渲染输出
return $this->fetch();
}
// 登录验证
public function yanzheng()
{
$membermod = new membermod();
$list = request()->post();
$validate = new \app\login\validate\Yanzheng;
$data = request()->post('username');
if (!$validate->check($data)) {
dump($validate->getError());
}
// return true;
}
}