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

@ -16,5 +16,5 @@ using System.Reflection;
// //
// You can specify all the values or you can default the Revision and Build Numbers // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.1.435")] [assembly: AssemblyVersion("3.0.1.436")]
[assembly: AssemblyFileVersion("3.0.1.435")] [assembly: AssemblyFileVersion("3.0.1.436")]

View file

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