mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Made it impossible to create a user with names containing spaces and prevented passwords from being echoed after enter is pressed.
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
29708e47a5
commit
30306a775a
@@ -296,13 +296,15 @@ namespace OpenSim.Services.UserAccountService
|
||||
string lastName;
|
||||
string password;
|
||||
string email;
|
||||
|
||||
List<char> excluded = new List<char>(new char[]{' '});
|
||||
|
||||
if (cmdparams.Length < 3)
|
||||
firstName = MainConsole.Instance.CmdPrompt("First name", "Default");
|
||||
firstName = MainConsole.Instance.CmdPrompt("First name", "Default", excluded);
|
||||
else firstName = cmdparams[2];
|
||||
|
||||
if (cmdparams.Length < 4)
|
||||
lastName = MainConsole.Instance.CmdPrompt("Last name", "User");
|
||||
lastName = MainConsole.Instance.CmdPrompt("Last name", "User", excluded);
|
||||
else lastName = cmdparams[3];
|
||||
|
||||
if (cmdparams.Length < 5)
|
||||
|
||||
Reference in New Issue
Block a user