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:
parent
cda544c04b
commit
470f217374
|
|
@ -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" }))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue