U4-6531 - Member login failing in preview mode

Created by Simon 20 Apr 2015, 15:02:44 Updated by Sebastiaan Janssen 15 Oct 2015, 17:54:34

Duplicates: U4-4219

We have a simple member-restricted section setup where I do the following check to ensure that a member is logged in:

var loginStatusModel = Members.GetCurrentLoginStatus(); if (loginStatusModel.IsLoggedIn) { // do logged in stuff } else { // show login form }

This login and check doesn't work when in preview mode and I am using the login controller essentially "out of the box":

@using (Html.BeginUmbracoForm("HandleLogin","UmbLoginController")) {{code}

Others on the forum are having the same problem, here's my original post: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/61714-Member-login-failing-in-preview-mode?p=0


Sebastiaan Janssen 15 Oct 2015, 17:54:34

A workaround (for now is in U4-4219)

Priority: Normal

Type: Bug

State: Duplicate


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:


Story Points: