diff options
author | Dr Scofield | 2009-06-10 10:59:56 +0000 |
---|---|---|
committer | Dr Scofield | 2009-06-10 10:59:56 +0000 |
commit | 783218ec89590838010eb7d5e7e50c43ee392391 (patch) | |
tree | 162e378052541d6efad51e09cb4ecc86a3aa7c51 | |
parent | Formatting cleanup. (diff) | |
download | opensim-SC-783218ec89590838010eb7d5e7e50c43ee392391.zip opensim-SC-783218ec89590838010eb7d5e7e50c43ee392391.tar.gz opensim-SC-783218ec89590838010eb7d5e7e50c43ee392391.tar.bz2 opensim-SC-783218ec89590838010eb7d5e7e50c43ee392391.tar.xz |
adding lastlogin information to admin_exists_user: will be 0 if the
user does not exist or hasn't logged in yet.
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
959 | /// <description>avatar's first name</description></item> | 959 | /// <description>avatar's first name</description></item> |
960 | /// <item><term>user_lastname</term> | 960 | /// <item><term>user_lastname</term> |
961 | /// <description>avatar's last name</description></item> | 961 | /// <description>avatar's last name</description></item> |
962 | /// <item><term>user_lastlogin</term> | ||
963 | /// <description>avatar's last login time (secs since UNIX epoch)</description></item> | ||
962 | /// <item><term>success</term> | 964 | /// <item><term>success</term> |
963 | /// <description>true or false</description></item> | 965 | /// <description>true or false</description></item> |
964 | /// <item><term>error</term> | 966 | /// <item><term>error</term> |
@@ -988,9 +990,16 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
988 | responseData["user_lastname"] = lastname; | 990 | responseData["user_lastname"] = lastname; |
989 | 991 | ||
990 | if (null == userInfo) | 992 | if (null == userInfo) |
993 | { | ||
991 | responseData["success"] = false; | 994 | responseData["success"] = false; |
995 | responseData["lastlogin"] = 0; | ||
996 | } | ||
992 | else | 997 | else |
998 | { | ||
993 | responseData["success"] = true; | 999 | responseData["success"] = true; |
1000 | responseData["lastlogin"] = userInfo.UserProfile.LastLogin; | ||
1001 | } | ||
1002 | |||
994 | 1003 | ||
995 | response.Value = responseData; | 1004 | response.Value = responseData; |
996 | } | 1005 | } |