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
parent
a23d64dec1
commit
783218ec89
|
@ -959,6 +959,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
/// <description>avatar's first name</description></item>
|
/// <description>avatar's first name</description></item>
|
||||||
/// <item><term>user_lastname</term>
|
/// <item><term>user_lastname</term>
|
||||||
/// <description>avatar's last name</description></item>
|
/// <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>
|
/// <item><term>success</term>
|
||||||
/// <description>true or false</description></item>
|
/// <description>true or false</description></item>
|
||||||
/// <item><term>error</term>
|
/// <item><term>error</term>
|
||||||
|
@ -988,9 +990,16 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
responseData["user_lastname"] = lastname;
|
responseData["user_lastname"] = lastname;
|
||||||
|
|
||||||
if (null == userInfo)
|
if (null == userInfo)
|
||||||
|
{
|
||||||
responseData["success"] = false;
|
responseData["success"] = false;
|
||||||
|
responseData["lastlogin"] = 0;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
responseData["success"] = true;
|
responseData["success"] = true;
|
||||||
|
responseData["lastlogin"] = userInfo.UserProfile.LastLogin;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
response.Value = responseData;
|
response.Value = responseData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue