chore(web/user/edit): not require email
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-01-14 15:14:05 +08:00
parent 6a4f9a370a
commit bb43c78a57
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -115,7 +115,7 @@ EOD);
UOJLocale::get('email'), UOJLocale::get('email'),
$user['email'] ?: '', $user['email'] ?: '',
function ($email, &$vdata) { function ($email, &$vdata) {
if (!validateEmail($email)) { if ($email && !validateEmail($email)) {
return 'Email 格式不合法。'; return 'Email 格式不合法。';
} }