diff options
author | Arthur Valadares | 2009-06-01 18:34:40 +0000 |
---|---|---|
committer | Arthur Valadares | 2009-06-01 18:34:40 +0000 |
commit | eb330f71be3fd1dd6f3c82fb3ad60bfd8be7e894 (patch) | |
tree | 1d47268a18d4d24230ffa65bca076fc00535d7eb /OpenSim/Client/Linden | |
parent | * Add simple original sog xml serialization test (diff) | |
download | opensim-SC-eb330f71be3fd1dd6f3c82fb3ad60bfd8be7e894.zip opensim-SC-eb330f71be3fd1dd6f3c82fb3ad60bfd8be7e894.tar.gz opensim-SC-eb330f71be3fd1dd6f3c82fb3ad60bfd8be7e894.tar.bz2 opensim-SC-eb330f71be3fd1dd6f3c82fb3ad60bfd8be7e894.tar.xz |
* Making silent logoff of old hung sessions for new connections default for
StandAlone users. Not touching grid.
Diffstat (limited to 'OpenSim/Client/Linden')
-rw-r--r-- | OpenSim/Client/Linden/LLStandaloneLoginModule.cs | 4 | ||||
-rw-r--r-- | OpenSim/Client/Linden/LLStandaloneLoginService.cs | 10 |
2 files changed, 2 insertions, 12 deletions
diff --git a/OpenSim/Client/Linden/LLStandaloneLoginModule.cs b/OpenSim/Client/Linden/LLStandaloneLoginModule.cs index 9cfa3c1..6474feb 100644 --- a/OpenSim/Client/Linden/LLStandaloneLoginModule.cs +++ b/OpenSim/Client/Linden/LLStandaloneLoginModule.cs | |||
@@ -54,7 +54,6 @@ 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; | ||
58 | protected string welcomeMessage; | 57 | protected string welcomeMessage; |
59 | 58 | ||
60 | public bool RegionLoginsEnabled | 59 | public bool RegionLoginsEnabled |
@@ -79,11 +78,9 @@ namespace OpenSim.Client.Linden | |||
79 | public void Initialise(IConfigSource source) | 78 | public void Initialise(IConfigSource source) |
80 | { | 79 | { |
81 | IConfig startupConfig = source.Configs["Startup"]; | 80 | IConfig startupConfig = source.Configs["Startup"]; |
82 | IConfig stdaloneConfig = source.Configs["StandAlone"]; | ||
83 | if (startupConfig != null) | 81 | if (startupConfig != null) |
84 | { | 82 | { |
85 | m_enabled = !startupConfig.GetBoolean("gridmode", false); | 83 | m_enabled = !startupConfig.GetBoolean("gridmode", false); |
86 | m_warn_already_logged = stdaloneConfig.GetBoolean("warn_user_already_logged_in", true); | ||
87 | } | 84 | } |
88 | 85 | ||
89 | if (m_enabled) | 86 | if (m_enabled) |
@@ -115,7 +112,6 @@ namespace OpenSim.Client.Linden | |||
115 | 112 | ||
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 | 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 |
117 | m_loginService = new LLStandaloneLoginService((UserManagerBase)m_firstScene.CommsManager.UserAdminService, welcomeMessage, m_firstScene.CommsManager.InterServiceInventoryService, m_firstScene.CommsManager.NetworkServersInfo, authenticate, rootFolder, this); | 114 | 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; | ||
119 | 115 | ||
120 | httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod); | 116 | httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod); |
121 | 117 | ||
diff --git a/OpenSim/Client/Linden/LLStandaloneLoginService.cs b/OpenSim/Client/Linden/LLStandaloneLoginService.cs index d9af24d..6b217e6 100644 --- a/OpenSim/Client/Linden/LLStandaloneLoginService.cs +++ b/OpenSim/Client/Linden/LLStandaloneLoginService.cs | |||
@@ -52,14 +52,6 @@ namespace OpenSim.Client.Linden | |||
52 | protected NetworkServersInfo m_serversInfo; | 52 | protected NetworkServersInfo m_serversInfo; |
53 | protected bool m_authUsers = false; | 53 | protected bool m_authUsers = false; |
54 | 54 | ||
55 | // If true, warns the user that he is already logged, forcing another login. | ||
56 | // If false, skips message and logs in directly, kicking out current user. | ||
57 | public bool WarnAlreadyLogged | ||
58 | { | ||
59 | get { return m_warn_already_logged; } | ||
60 | set { m_warn_already_logged = value; } | ||
61 | } | ||
62 | |||
63 | /// <summary> | 55 | /// <summary> |
64 | /// Used to make requests to the local regions. | 56 | /// Used to make requests to the local regions. |
65 | /// </summary> | 57 | /// </summary> |
@@ -79,6 +71,8 @@ namespace OpenSim.Client.Linden | |||
79 | 71 | ||
80 | m_inventoryService = interServiceInventoryService; | 72 | m_inventoryService = interServiceInventoryService; |
81 | m_regionsConnector = regionsConnector; | 73 | m_regionsConnector = regionsConnector; |
74 | // Standard behavior: In StandAlone, silent logout of last hung session | ||
75 | m_warn_already_logged = false; | ||
82 | } | 76 | } |
83 | 77 | ||
84 | public override UserProfileData GetTheUser(string firstname, string lastname) | 78 | public override UserProfileData GetTheUser(string firstname, string lastname) |