mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Fixes #7446
This commit is contained in:
committed by
Sébastien Ros
parent
750824b197
commit
83f47ac148
@@ -6,7 +6,7 @@ using Orchard.Security;
|
||||
namespace Orchard.Users.Models {
|
||||
public sealed class UserPart : ContentPart<UserPartRecord>, IUser {
|
||||
public const string EmailPattern =
|
||||
@"^(?![\.@])(""([^""\r\\]|\\[""\r\\])*""|([-a-z0-9!#$%&'*+/=?^_`{|}~]|(?<!\.)\.)*)(?<!\.)"
|
||||
@"^(?![\.@])(""([^""\r\\]|\\[""\r\\])*""|([-\p{L}0-9!#$%&'*+/=?^_`{|}~]|(?<!\.)\.)*)(?<!\.)"
|
||||
+ @"@([a-z0-9][\w-]*\.)+[a-z]{2,}$";
|
||||
|
||||
public const int MaxUserNameLength = 255;
|
||||
|
||||
Reference in New Issue
Block a user