HttpContext.User is being populated with an anonymous identity with a recent change. So I dont have to check for null before.

Fixing the app accordingly.
This commit is contained in:
Praburaj 2014-04-24 14:35:14 -07:00
parent cda544c04b
commit 470f217374
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
@using System.Security.Principal
@if (Context.HttpContext.User != null && Context.HttpContext.User.Identity.IsAuthenticated)
@if (Context.HttpContext.User.Identity.IsAuthenticated)
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
{