@@ -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"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user