Fixes some issues with the User membership provider, updates user create dialog to also have an email address (which is required by membership), adds validation to the member and user create dialogs to ensure that the email address is validated to be a correcty formatted address.

This commit is contained in:
Shannon
2014-01-02 14:13:43 +11:00
parent fc0c6a1cd8
commit 17883358b6
12 changed files with 358 additions and 104 deletions

View File

@@ -605,7 +605,7 @@ namespace Umbraco.Core.Security
return pass;
}
protected bool IsEmailValid(string email)
internal static bool IsEmailValid(string email)
{
const string pattern = @"^(?!\.)(""([^""\r\\]|\\[""\r\\])*""|"
+ @"([-a-z0-9!#$%&'*+/=?^_`{|}~]|(?<!\.)\.)*)(?<!\.)"