mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Fix XmlRpcAdmin admin_exists_user call so that it actually returns the last user login time rather than serializing the DateTime directly which generates a set of unexpected fields.
lastlogin return is in unix timestamp format.
This commit is contained in:
@@ -1094,7 +1094,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
{
|
||||
GridUserInfo userInfo = m_application.SceneManager.CurrentOrFirstScene.GridUserService.GetGridUserInfo(account.PrincipalID.ToString());
|
||||
if (userInfo != null)
|
||||
responseData["lastlogin"] = userInfo.Login;
|
||||
responseData["lastlogin"] = Util.ToUnixTime(userInfo.Login);
|
||||
else
|
||||
responseData["lastlogin"] = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user