正则验证密码 [需包含字母数字以及@*#中的一种,长度为6-22位]
array('password', '/^([a-zA-Z0-9@*#]{6,22})$/', '密码格式不正确,..., 0),
array('repassword', 'password', '确认密码不正确', 0, 'confirm'), // 验证确认密码是否和密码一致
array...正则验证密码 [需包含字母数字以及@*#中的一种,长度为6-22位]
array('password', '/^([a-zA-Z0-9@*#]{6,22})$/', '密码格式不正确,..., 0),
array('repassword', 'password', '确认密码不正确', 0, 'confirm'), // 验证确认密码是否和密码一致
array...', U('Index/index'));
} else {
$this->error('登录失败,用户名或密码不正确!')