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

IRC_NewDev
hang 2024-05-23 09:03:19 +08:00
parent b02589a957
commit 66beb43daf
1 changed files with 1 additions and 1 deletions

View File

@ -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
return ResponseOutput.NotOk(_localizer["User_LegalEmail"]);