Protect/Prevent user names from using valid HG identifiers.

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
Bill Blight
2018-09-17 07:45:06 -07:00
committed by UbitUmarov
parent c643b4236f
commit bd4907e960

View File

@@ -388,8 +388,8 @@ namespace OpenSim.Services.UserAccountService
string rawPrincipalId;
string model;
List<char> excluded = new List<char>(new char[]{' '});
// List<char> excluded = new List<char>(new char[]{' '});
List<char> excluded = new List<char>(new char[]{' ', '@', '.', ':' }); //Protect user names from using valid HG identifiers.
if (cmdparams.Length < 3)
firstName = MainConsole.Instance.CmdPrompt("First name", "Default", excluded);
else firstName = cmdparams[2];