This commit is contained in:
molong
2022-05-24 16:10:50 +08:00
parent a37870c93b
commit d8e43f9e93
63 changed files with 2169 additions and 230 deletions

View File

@@ -0,0 +1,27 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\validate\auth;
use think\Validate;
class Index extends Validate{
protected $rule = [
'username' => 'require:id',
'password' => 'require'
];
protected $message = [
'password.require' => '登录密码必须',
'username.require' => '登录用户名必须'
];
protected $scene = [
'login' => ['username', 'password'],
'resetpasswd' => ['username', 'password']
];
}