<?php
//管理员登录验证器
namespace app\admin\validate;
use think\Validate;

class Login extends Validate{
	
	protected $rule=[
		'Token'   => 'eq:false',
		'name' => ['require'],
		'pwd' => ['require'],
		'id'   => 'require',
		'is_effect'   => 'neq:1',
		'captcha'   => 'eq:false',
	];

	protected $message=[
		'Token' => '令牌错误',
		'name.require'=>'用户名不能为空',
		'pwd.require' => '密码不能为空',
		'id.require' => '用户名或密码错误',
		'is_effect' => '该账号已停用',
		'captcha' => '验证码错误',
	];
	
}