#17714: Authentication in dev environments can bleed from other local sites.

Changed all instances of IsAuthenticated to WorkContext.CurrentUser != null, etc.

--HG--
branch : 1.x
This commit is contained in:
Dave Reed
2011-05-12 11:06:11 -07:00
parent 435b688816
commit 765cf34b83
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
@using System.Web.Mvc;
<div class="user-display">
@if (Request.IsAuthenticated) {
@if (WorkContext.CurrentUser != null) {
<span class="user-actions welcome">
@T("Welcome, <strong>{0}</strong>!", new HtmlString(Html.ActionLink( WorkContext.CurrentUser.UserName, "ChangePassword", new { Controller = "Account", Area = "Orchard.Users" }).ToString()))
</span>