Commit 3663c68b authored by Leigh Stoller's avatar Leigh Stoller

Show last web login in user dashboard.

parent cf6fdf90
......@@ -34,6 +34,10 @@
<td>City</td>
<td><%= fields.city %></td>
</tr>
<tr>
<td>Last Login</td>
<td class="format-date"><%= fields.last_weblogin %></td>
</tr>
<% if (isadmin) { %>
<% if (fields.portal) { %>
<tr>
......
......@@ -222,6 +222,7 @@ function Do_AccountDetails()
$results["web_frozen"] = $target_user->weblogin_frozen()? true:false;
$results["nonlocal_id"] = ($target_user->nonlocal_id() ?
$target_user->nonlocal_id() : "");
$results["last_weblogin"] = DateStringGMT(LASTWEBLOGIN($target_idx));
}
SPITAJAX_RESPONSE($results);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment