We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9e0cdb commit 4d8dd6aCopy full SHA for 4d8dd6a
src/SampleApps/SampleApp.Classic/Controllers/Shared/LoginPanelController.cs
@@ -11,7 +11,7 @@ public class LoginPanelController : AsyncController
11
{
12
public override async Task<ControllerResponse> Invoke()
13
14
- return Context.Context.User == null || !Context.Context.User.Identity.IsAuthenticated
+ return !Context.IsAuthenticated
15
? new InlineTpl("LoginPanel", await TemplateFactory.LoadAsync("Shared/LoginPanel/GuestPanel"))
16
: new InlineTpl("LoginPanel", await GetView<LoggedUserPanelView>().Get(Context.Context.User.Identity.Name));
17
}
0 commit comments