Admin auth functionally complete

This commit is contained in:
2012-12-31 14:49:41 -05:00
parent 8739251066
commit 2ec2a752cd
30 changed files with 260 additions and 79 deletions
+15
View File
@@ -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>
}