From 35fa85069e792579ebd44a974053d6dce288ea0a Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 28 Mar 2007 18:10:52 +0000 Subject: After hours of searching for a bug, it works - User accounts in sandbox mode, currently they are not persistent between restarts (ie restarting opensim.exe) but should be persistent between sessions (login/ logout). Use the -account command line arg to enable them and then create new accounts through the web interface --- OpenSim.RegionServer/UserServer/LoginServer.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'OpenSim.RegionServer/UserServer/LoginServer.cs') diff --git a/OpenSim.RegionServer/UserServer/LoginServer.cs b/OpenSim.RegionServer/UserServer/LoginServer.cs index 0bbe0b0..7b4c1f0 100644 --- a/OpenSim.RegionServer/UserServer/LoginServer.cs +++ b/OpenSim.RegionServer/UserServer/LoginServer.cs @@ -66,11 +66,12 @@ namespace OpenSim.UserServer private int m_simPort; private string m_simAddr; - public LoginServer(IGridServer gridServer, string simAddr, int simPort) + public LoginServer(IGridServer gridServer, string simAddr, int simPort , bool useAccounts) { m_gridServer = gridServer; m_simPort = simPort; m_simAddr = simAddr; + this.userAccounts = useAccounts; } // InitializeLogin: initialize the login @@ -395,6 +396,15 @@ namespace OpenSim.UserServer return Regex.Replace(BitConverter.ToString(encodedBytes), "-", "").ToLower(); } + public bool CreateUserAccount(string firstName, string lastName, string password) + { + Console.WriteLine("creating new user account"); + string mdPassword = EncodePassword(password); + Console.WriteLine("with password: " + mdPassword); + this.userManager.CreateNewProfile(firstName, lastName, mdPassword); + return true; + } + //IUserServer implementation public AgentInventory RequestAgentsInventory(LLUUID agentID) { @@ -407,6 +417,11 @@ namespace OpenSim.UserServer return aInventory; } + public bool UpdateAgentsInventory(LLUUID agentID, AgentInventory inventory) + { + return true; + } + public void SetServerInfo(string ServerUrl, string SendKey, string RecvKey) { -- cgit v1.1