diff --git a/web/app/controllers/super_manage.php b/web/app/controllers/super_manage.php index d5c8112..8982783 100644 --- a/web/app/controllers/super_manage.php +++ b/web/app/controllers/super_manage.php @@ -352,7 +352,7 @@ if ($cur_tab == 'index') { 'label' => '电子邮件', 'help' => '选填项。填写电子邮件后用户可自主进行密码重置。', 'validator_php' => function ($email, &$vdata) { - if (!validateEmail($email)) { + if ($email && !validateEmail($email)) { return '邮件地址不合法'; }