aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index c59ea28..5a23c90 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -1012,7 +1012,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1012 throw new Exception(String.Format("Account {0} {1} already exists", firstname, lastname)); 1012 throw new Exception(String.Format("Account {0} {1} already exists", firstname, lastname));
1013 1013
1014 account = new UserAccount(scopeID, firstname, lastname, email); 1014 account = new UserAccount(scopeID, firstname, lastname, email);
1015 // REFACTORING PROBLEM: no method to set the password!
1016 1015
1017 bool success = m_app.SceneManager.CurrentOrFirstScene.UserAccountService.StoreUserAccount(account); 1016 bool success = m_app.SceneManager.CurrentOrFirstScene.UserAccountService.StoreUserAccount(account);
1018 1017
@@ -1020,6 +1019,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1020 throw new Exception(String.Format("failed to create new user {0} {1}", 1019 throw new Exception(String.Format("failed to create new user {0} {1}",
1021 firstname, lastname)); 1020 firstname, lastname));
1022 1021
1022 // Store the password
1023 m_app.SceneManager.CurrentOrFirstScene.AuthenticationService.SetPassword(account.PrincipalID, passwd);
1024
1023 GridRegion home = m_app.SceneManager.CurrentOrFirstScene.GridService.GetRegionByPosition(scopeID, 1025 GridRegion home = m_app.SceneManager.CurrentOrFirstScene.GridService.GetRegionByPosition(scopeID,
1024 (int)(regX * Constants.RegionSize), (int)(regY * Constants.RegionSize)); 1026 (int)(regX * Constants.RegionSize), (int)(regY * Constants.RegionSize));
1025 if (home == null) 1027 if (home == null)