更新目录结构
This commit is contained in:
27
app/validate/admin/auth/Index.php
Normal file
27
app/validate/admin/auth/Index.php
Normal 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\admin\auth;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Index extends Validate{
|
||||
|
||||
protected $rule = [
|
||||
'username' => 'require',
|
||||
'password' => 'require'
|
||||
];
|
||||
protected $message = [
|
||||
'password.require' => '登录密码必须',
|
||||
'username.require' => '登录用户名必须'
|
||||
];
|
||||
protected $scene = [
|
||||
'login' => ['username', 'password'],
|
||||
'resetpasswd' => ['username', 'password']
|
||||
];
|
||||
}
|
||||
24
app/validate/admin/auth/Users.php
Normal file
24
app/validate/admin/auth/Users.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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\admin\auth;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Index extends Validate{
|
||||
|
||||
protected $rule = [
|
||||
'password' => 'require'
|
||||
];
|
||||
protected $message = [
|
||||
'password.require' => '登录密码必须',
|
||||
];
|
||||
protected $scene = [
|
||||
'passwd' => ['password'],
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user