1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-11 17:18:45 +00:00

chore(web/user/edit): not require email

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

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