29 lines
804 B
PHP
Executable File
29 lines
804 B
PHP
Executable File
<?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\http\validate\admin;
|
|
|
|
use think\Validate;
|
|
|
|
class Index extends Validate {
|
|
|
|
protected $rule = [
|
|
'username' => 'require',
|
|
'password' => 'require',
|
|
];
|
|
|
|
protected $message = [];
|
|
|
|
/**
|
|
* @title 登录验证
|
|
*/
|
|
public function sceneLogin() {
|
|
return $this->only(['username','password']);
|
|
}
|
|
} |