<?php
/**
 * @Statement: [ An Ordinary Person ]
 * @Author: 闻子 < QQ：270988107 >
 * @Copyright: 闻子 2016-2019 All rights reserved.
 *
 *    .--,       .--,
 *   ( (  \.---./  ) )
 *    '.__/o   o\__.'
 *       {=  ^  =}
 *        >  -  <
 *       /       \
 *      //       \\
 *     //|   .   |\\
 *     "'\       /'"_.-~^`'-.
 *        \  _  /--'         `
 *      ___)( )(___
 *     (((__) (__)))    高山仰止,景行行止.虽不能至,心向往之.
 *
 */

namespace app\common\validate;

class User extends ValidBase
{
    protected $rule =   [
        'tel'  => 'require',
        'code'  => 'require',
        'password'  => 'require|min:6|max:25|alphaNum',
    ];
    
    protected $message  =   [
        'tel.require'    => '请输入手机号码',
        'code.require'    => '请输入短信验证码',
        'password.require'    => '请输入密码',
        'password.min'    => '新密码必须为6 ~ 25位',
        'password.max'    => '新密码最多不能超过25位',
        'password.alphaNum'    => '新密码不能含有中文和特殊字符',
    ];
}