Re: Is there a way to bypass the login, such as a guest account?

Thomas Vandahl <[email protected]> Sat, 21 Jan 2012 14:56:42 +0100
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <[email protected]>
On 20.01.12 04:57, David wrote:
> 
> I actually need a seamless login as anonymous user, 
> without entering any password. 
> Thomas, could you 
> elaborate on SessionValidator and TurbineSecurity.getAnonymousUser()?
> Thanks,

The starting point would be to use for example TemplateSessionValidator
instead of TemplateSecureSessionValidator.

The difference between the two is that the
TemplateSecureSessionValidator redirects to the login screen when it
detects a null user whereas the TemplateSessionValidator simply
continues with the anonymous user then. If you want to do additional
things in the session validator, you can use the source code of
TemplateSessionValidator to roll your own.

If you have further questions, feel free to ask.

Bye, Thomas.