...
|
...
|
@@ -25,11 +25,11 @@ class UserValidate extends Validate |
|
|
'user_pass.require' => '密码不能为空',
|
|
|
'user_email.require' => '邮箱不能为空',
|
|
|
'user_email.email' => '邮箱不正确',
|
|
|
'user_email.unique' => '邮箱已经存在',
|
|
|
// 'user_email.unique' => '邮箱已经存在',
|
|
|
];
|
|
|
|
|
|
protected $scene = [
|
|
|
'add' => ['user_login', 'user_pass', 'user_email'],
|
|
|
'edit' => ['user_login', 'user_email'],
|
|
|
];
|
|
|
} |
|
|
\ No newline at end of file |
|
|
} |
...
|
...
|
|