diff options
author | randomhuman | 2010-09-05 21:44:46 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-09-10 23:19:18 +0100 |
commit | 30306a775af74e1fe080590998a71a4c7e64ad12 (patch) | |
tree | e1fc438132054d2b43cd6ff8ee133219bafad1dd /OpenSim/Services | |
parent | Merge branch 'prebuild-update' (diff) | |
download | opensim-SC-30306a775af74e1fe080590998a71a4c7e64ad12.zip opensim-SC-30306a775af74e1fe080590998a71a4c7e64ad12.tar.gz opensim-SC-30306a775af74e1fe080590998a71a4c7e64ad12.tar.bz2 opensim-SC-30306a775af74e1fe080590998a71a4c7e64ad12.tar.xz |
Made it impossible to create a user with names containing spaces and prevented passwords from being echoed after enter is pressed.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index 326e502..65c247f 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs | |||
@@ -296,13 +296,15 @@ namespace OpenSim.Services.UserAccountService | |||
296 | string lastName; | 296 | string lastName; |
297 | string password; | 297 | string password; |
298 | string email; | 298 | string email; |
299 | |||
300 | List<char> excluded = new List<char>(new char[]{' '}); | ||
299 | 301 | ||
300 | if (cmdparams.Length < 3) | 302 | if (cmdparams.Length < 3) |
301 | firstName = MainConsole.Instance.CmdPrompt("First name", "Default"); | 303 | firstName = MainConsole.Instance.CmdPrompt("First name", "Default", excluded); |
302 | else firstName = cmdparams[2]; | 304 | else firstName = cmdparams[2]; |
303 | 305 | ||
304 | if (cmdparams.Length < 4) | 306 | if (cmdparams.Length < 4) |
305 | lastName = MainConsole.Instance.CmdPrompt("Last name", "User"); | 307 | lastName = MainConsole.Instance.CmdPrompt("Last name", "User", excluded); |
306 | else lastName = cmdparams[3]; | 308 | else lastName = cmdparams[3]; |
307 | 309 | ||
308 | if (cmdparams.Length < 5) | 310 | if (cmdparams.Length < 5) |