after pressing log out, the login form is not shown, instead I see ‘Logged in as [Log Out]’

Submitted by Danny Groenewegen on 24 October 2010 at 15:08

On 25 October 2010 at 12:58 Sander Vermolen commented:

I fixed the issue. Strange thing is, that I used the following, seemingly correct, check to swap between an login and a logout template:


securityContext.loggedIn

Although it used to work before, it now apparently always yields true. This probably has something to do with loggedIn being a derived property now, or me changing the login approach to use the authenticate function.

I was able to fix the problem by using the check:


securityContext.loggedIn && securityContext.principal!=null

Clearly the first clause is pointless, but I left it in for now, as I think it is what the check should be. I do not know why the additional null check is needed and why loggedIn is always set to true.

Danny, do you know why this happened and what the right fix would be?


On 25 October 2010 at 12:58 Sander Vermolen closed this issue.

On 25 October 2010 at 13:47 Danny Groenewegen commented:

securityContext.loggedIn in the mainheader() template seems to work ok here, maybe you need to update WebDSL or clean your project?


On 25 October 2010 at 14:27 Sander Vermolen commented:

Weird. I’ll reopen the issue and see if it is fixed after a project clean and a WebDSL update.


On 25 October 2010 at 14:28 Sander Vermolen reopened this issue.

On 29 November 2010 at 11:43 Sander Vermolen commented:

Issue fixed. A webdsl update and a project clean solved the problem.


On 29 November 2010 at 11:43 Sander Vermolen closed this issue.

Log in to post comments