hi,

This works, thanks, however, it seems I can't catch the exception:

 @OnEvent(EventConstants.SUCCESS)
    Class succcess() {
        AuthenticationToken authenticationToken = new
UsernamePasswordToken(email, password, false);
        try {
            SecurityUtils.getSubject().login(authenticationToken);
            signIn.login();
            return MyInex.class;
        } catch (AuthenticationException e) {
            System.out.println(e.getStackTrace()); // passed wrong password,
but never catch here
        }
        return null;
    }

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-1-a-simple-security-tp5106576p5108839.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to