Fixed and closed #422: hyphens and underscores are now allowed by default in usernames and group names.

This commit is contained in:
Dario Solera 2009-11-28 13:50:22 +00:00
parent 93111258e6
commit 90c0be4082
2 changed files with 4 additions and 4 deletions

View file

@ -1145,7 +1145,7 @@ namespace ScrewTurn.Wiki {
/// </summary>
public static string UsernameRegex {
get {
return GetString(Provider.GetSetting("UsernameRegex"), @"^\w[\w\ !$@%^\.\(\)]{3,25}$");
return GetString(Provider.GetSetting("UsernameRegex"), @"^\w[\w\ !$@%^\.\(\)\-_]{3,25}$");
}
set {
Provider.SetSetting("UsernameRegex", value);
@ -1157,7 +1157,7 @@ namespace ScrewTurn.Wiki {
/// </summary>
public static string PasswordRegex {
get {
return GetString(Provider.GetSetting("PasswordRegex"), @"^\w[\w~!@#$%^\(\)\[\]\{\}\.,=\-_\ ]{6,25}$");
return GetString(Provider.GetSetting("PasswordRegex"), @"^\w[\w~!@#$%^\(\)\[\]\{\}\.,=\-_\ ]{5,25}$");
}
set {
Provider.SetSetting("PasswordRegex", value);