mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 09:38:42 +00:00
chore(web/user/edit): not require email
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
6a4f9a370a
commit
bb43c78a57
@ -115,7 +115,7 @@ EOD);
|
||||
UOJLocale::get('email'),
|
||||
$user['email'] ?: '',
|
||||
function ($email, &$vdata) {
|
||||
if (!validateEmail($email)) {
|
||||
if ($email && !validateEmail($email)) {
|
||||
return 'Email 格式不合法。';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user