* May fix mantis #4603.
* My local git wants to commit the groups files for line endings, I'm gonna let it do it.slimupdates
parent
f302224caf
commit
80346ad2e2
|
@ -1012,7 +1012,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
throw new Exception(String.Format("Account {0} {1} already exists", firstname, lastname));
|
throw new Exception(String.Format("Account {0} {1} already exists", firstname, lastname));
|
||||||
|
|
||||||
account = new UserAccount(scopeID, firstname, lastname, email);
|
account = new UserAccount(scopeID, firstname, lastname, email);
|
||||||
// REFACTORING PROBLEM: no method to set the password!
|
|
||||||
|
|
||||||
bool success = m_app.SceneManager.CurrentOrFirstScene.UserAccountService.StoreUserAccount(account);
|
bool success = m_app.SceneManager.CurrentOrFirstScene.UserAccountService.StoreUserAccount(account);
|
||||||
|
|
||||||
|
@ -1020,6 +1019,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
throw new Exception(String.Format("failed to create new user {0} {1}",
|
throw new Exception(String.Format("failed to create new user {0} {1}",
|
||||||
firstname, lastname));
|
firstname, lastname));
|
||||||
|
|
||||||
|
// Store the password
|
||||||
|
m_app.SceneManager.CurrentOrFirstScene.AuthenticationService.SetPassword(account.PrincipalID, passwd);
|
||||||
|
|
||||||
GridRegion home = m_app.SceneManager.CurrentOrFirstScene.GridService.GetRegionByPosition(scopeID,
|
GridRegion home = m_app.SceneManager.CurrentOrFirstScene.GridService.GetRegionByPosition(scopeID,
|
||||||
(int)(regX * Constants.RegionSize), (int)(regY * Constants.RegionSize));
|
(int)(regX * Constants.RegionSize), (int)(regY * Constants.RegionSize));
|
||||||
if (home == null)
|
if (home == null)
|
||||||
|
|
Loading…
Reference in New Issue