From 783218ec89590838010eb7d5e7e50c43ee392391 Mon Sep 17 00:00:00 2001
From: Dr Scofield
Date: Wed, 10 Jun 2009 10:59:56 +0000
Subject: adding lastlogin information to admin_exists_user: will be 0 if the
user does not exist or hasn't logged in yet.
---
OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 9 +++++++++
1 file changed, 9 insertions(+)
(limited to 'OpenSim')
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index f7171ff..d2b81c8 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -959,6 +959,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
/// avatar's first name
/// - user_lastname
/// avatar's last name
+ /// - user_lastlogin
+ /// avatar's last login time (secs since UNIX epoch)
/// - success
/// true or false
/// - error
@@ -988,9 +990,16 @@ namespace OpenSim.ApplicationPlugins.RemoteController
responseData["user_lastname"] = lastname;
if (null == userInfo)
+ {
responseData["success"] = false;
+ responseData["lastlogin"] = 0;
+ }
else
+ {
responseData["success"] = true;
+ responseData["lastlogin"] = userInfo.UserProfile.LastLogin;
+ }
+
response.Value = responseData;
}
--
cgit v1.1