Skip to content

Commit 4d8dd6a

Browse files
committed
Refactored to Context.IsAuthenticated
1 parent b9e0cdb commit 4d8dd6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SampleApps/SampleApp.Classic/Controllers/Shared/LoginPanelController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class LoginPanelController : AsyncController
1111
{
1212
public override async Task<ControllerResponse> Invoke()
1313
{
14-
return Context.Context.User == null || !Context.Context.User.Identity.IsAuthenticated
14+
return !Context.IsAuthenticated
1515
? new InlineTpl("LoginPanel", await TemplateFactory.LoadAsync("Shared/LoginPanel/GuestPanel"))
1616
: new InlineTpl("LoginPanel", await GetView<LoggedUserPanelView>().Get(Context.Context.User.Identity.Name));
1717
}

0 commit comments

Comments
 (0)