adding lastlogin information to admin_exists_user: will be 0 if the

user does not exist or hasn't logged in yet.
0.6.6-post-fixes
Dr Scofield 2009-06-10 10:59:56 +00:00
parent a23d64dec1
commit 783218ec89
1 changed files with 9 additions and 0 deletions

View File

@ -959,6 +959,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
/// <description>avatar's first name</description></item>
/// <item><term>user_lastname</term>
/// <description>avatar's last name</description></item>
/// <item><term>user_lastlogin</term>
/// <description>avatar's last login time (secs since UNIX epoch)</description></item>
/// <item><term>success</term>
/// <description>true or false</description></item>
/// <item><term>error</term>
@ -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;
}