
Check on user already logged in raises error
Hi all,
On my login endpoint, I thought it would be useful to add the following condition:
present?(var:Webuser) -> Redirect to "/start"
This would save a user time if he is already logged in. From a security perspective, this is no issue, since the session already expires after a couple of minutes.
However, when a user is not logged on yet BettyBlocks throws an error. This is strange behaviour, because that's what I want to test.
Did anyone else encountered this also and how can this be fixed?
As always, your answer is very much appreciated.
Kind Regards,
Arno
Hi all,
On my login endpoint, I thought it would be useful to add the following condition:
present?(var:Webuser) -> Redirect to "/start"
This would save a user time if he is already logged in. From a security perspective, this is no issue, since the session already expires after a couple of minutes.
However, when a user is not logged on yet BettyBlocks throws an error. This is strange behaviour, because that's what I want to test.
Did anyone else encountered this also and how can this be fixed?
As always, your answer is very much appreciated.
Kind Regards,
Arno
Login to reply