Admin auth functionally complete
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
@using MileageTraker.Web.Utility
|
||||
@model MileageTraker.Web.Models.User
|
||||
|
||||
@if (Model.LastActivityDate > CustomExtensions.UserOnlineThreshold())
|
||||
{
|
||||
<span class='label label-info'>Online</span>
|
||||
}
|
||||
@if (Model.IsLockedOut)
|
||||
{
|
||||
<span class='label label-warning' title="@string.Format("Locked out on {0:d} (too many failed login attempts)", Model.LastLockoutDate)">Locked Out</span>
|
||||
}
|
||||
@if (!Model.IsApproved)
|
||||
{
|
||||
<span class='label label-inverse'>Account Disabled</span>
|
||||
}
|
||||
Reference in New Issue
Block a user