diff options
author | Arthur Valadares | 2009-05-29 22:38:18 +0000 |
---|---|---|
committer | Arthur Valadares | 2009-05-29 22:38:18 +0000 |
commit | d0084f08f2d2d591706242227b2825a1e82e902e (patch) | |
tree | 7a3b8ad159568ccf3fda09a25c52bbd92071ef89 /OpenSim/Client/Linden/LLStandaloneLoginModule.cs | |
parent | * Bug fix: Fixes an exception when Scene.RemoveClient is called to remove on a (diff) | |
download | opensim-SC-d0084f08f2d2d591706242227b2825a1e82e902e.zip opensim-SC-d0084f08f2d2d591706242227b2825a1e82e902e.tar.gz opensim-SC-d0084f08f2d2d591706242227b2825a1e82e902e.tar.bz2 opensim-SC-d0084f08f2d2d591706242227b2825a1e82e902e.tar.xz |
* Allows standalone region users to skip the "You must wait 5 minutes to log again" message and
allow the region to kick the old user and log the new one without reporting any failure.
Default is still to show message and fail login
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Client/Linden/LLStandaloneLoginModule.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Client/Linden/LLStandaloneLoginModule.cs b/OpenSim/Client/Linden/LLStandaloneLoginModule.cs index 6474feb..9cfa3c1 100644 --- a/OpenSim/Client/Linden/LLStandaloneLoginModule.cs +++ b/OpenSim/Client/Linden/LLStandaloneLoginModule.cs | |||
@@ -54,6 +54,7 @@ namespace OpenSim.Client.Linden | |||
54 | protected bool m_enabled = false; // Module is only enabled if running in standalone mode | 54 | protected bool m_enabled = false; // Module is only enabled if running in standalone mode |
55 | 55 | ||
56 | protected bool authenticate; | 56 | protected bool authenticate; |
57 | protected bool m_warn_already_logged; | ||
57 | protected string welcomeMessage; | 58 | protected string welcomeMessage; |
58 | 59 | ||
59 | public bool RegionLoginsEnabled | 60 | public bool RegionLoginsEnabled |
@@ -78,9 +79,11 @@ namespace OpenSim.Client.Linden | |||
78 | public void Initialise(IConfigSource source) | 79 | public void Initialise(IConfigSource source) |
79 | { | 80 | { |
80 | IConfig startupConfig = source.Configs["Startup"]; | 81 | IConfig startupConfig = source.Configs["Startup"]; |
82 | IConfig stdaloneConfig = source.Configs["StandAlone"]; | ||
81 | if (startupConfig != null) | 83 | if (startupConfig != null) |
82 | { | 84 | { |
83 | m_enabled = !startupConfig.GetBoolean("gridmode", false); | 85 | m_enabled = !startupConfig.GetBoolean("gridmode", false); |
86 | m_warn_already_logged = stdaloneConfig.GetBoolean("warn_user_already_logged_in", true); | ||
84 | } | 87 | } |
85 | 88 | ||
86 | if (m_enabled) | 89 | if (m_enabled) |
@@ -112,6 +115,7 @@ namespace OpenSim.Client.Linden | |||
112 | 115 | ||
113 | //TODO: fix the casting of the user service, maybe by registering the userManagerBase with scenes, or refactoring so we just need a IUserService reference | 116 | //TODO: fix the casting of the user service, maybe by registering the userManagerBase with scenes, or refactoring so we just need a IUserService reference |
114 | m_loginService = new LLStandaloneLoginService((UserManagerBase)m_firstScene.CommsManager.UserAdminService, welcomeMessage, m_firstScene.CommsManager.InterServiceInventoryService, m_firstScene.CommsManager.NetworkServersInfo, authenticate, rootFolder, this); | 117 | m_loginService = new LLStandaloneLoginService((UserManagerBase)m_firstScene.CommsManager.UserAdminService, welcomeMessage, m_firstScene.CommsManager.InterServiceInventoryService, m_firstScene.CommsManager.NetworkServersInfo, authenticate, rootFolder, this); |
118 | m_loginService.WarnAlreadyLogged = m_warn_already_logged; | ||
115 | 119 | ||
116 | httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod); | 120 | httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod); |
117 | 121 | ||