修改邮箱正则
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-23 09:03:19 +08:00
parent b02589a957
commit 66beb43daf
@@ -153,7 +153,7 @@ namespace IRaCIS.Application.Services
{ {
//检查手机或者邮箱是否有效 //检查手机或者邮箱是否有效
if (!Regex.IsMatch(email, @"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$")) if (!Regex.IsMatch(email, @"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"))
{ {
//---Please input a legal email //---Please input a legal email
return ResponseOutput.NotOk(_localizer["User_LegalEmail"]); return ResponseOutput.NotOk(_localizer["User_LegalEmail"]);