代码功能更新
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace app\validate\admin\bot;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Edit extends Validate
|
||||
{
|
||||
//数组顺序就是检测的顺序
|
||||
protected $rule = [
|
||||
'password' => 'confirm:re_password|min:6|max:26',
|
||||
];
|
||||
|
||||
//定义内置方法检验失败后返回的字符
|
||||
protected $message = [
|
||||
'password.confirm' => '两次密码输入不相同',
|
||||
'password.min' => '密码长度不能低于6个字符',
|
||||
'password.max' => '密码长度不能高于26个字符',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user