fix(super_manage/users): register_form
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-15 18:35:43 +08:00
parent 353ee59c07
commit 7948c1bb2a
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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 '邮件地址不合法';
} }