mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 17:48:42 +00:00
fix(super_manage/users): register_form
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
353ee59c07
commit
7948c1bb2a
@ -352,7 +352,7 @@ if ($cur_tab == 'index') {
|
|||||||
'label' => '电子邮件',
|
'label' => '电子邮件',
|
||||||
'help' => '选填项。填写电子邮件后用户可自主进行密码重置。',
|
'help' => '选填项。填写电子邮件后用户可自主进行密码重置。',
|
||||||
'validator_php' => function ($email, &$vdata) {
|
'validator_php' => function ($email, &$vdata) {
|
||||||
if (!validateEmail($email)) {
|
if ($email && !validateEmail($email)) {
|
||||||
return '邮件地址不合法';
|
return '邮件地址不合法';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user