Fixed and closed #422: hyphens and underscores are now allowed by default in usernames and group names.
This commit is contained in:
parent
93111258e6
commit
90c0be4082
2 changed files with 4 additions and 4 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
|||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("3.0.1.435")]
|
||||
[assembly: AssemblyFileVersion("3.0.1.435")]
|
||||
[assembly: AssemblyVersion("3.0.1.436")]
|
||||
[assembly: AssemblyFileVersion("3.0.1.436")]
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue