cannot log in after logging out
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
Issue Log
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.loggedInAlthough 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!=nullClearly 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?
securityContext.loggedIn in the mainheader() template seems to work ok here, maybe you need to update WebDSL or clean your project?
Weird. I’ll reopen the issue and see if it is fixed after a project clean and a WebDSL update.
Issue fixed. A webdsl update and a project clean solved the problem.
Log in to post comments