-
1. Re: identiy.login called twice
shane.bryzak Oct 24, 2007 9:40 AM (in response to vwiencek)How and where are you adding faces messages? The login success/failure messages produced by Identity are added by the login() method, not authenticate().
-
2. Re: identiy.login called twice
csavolainen Oct 26, 2007 3:15 PM (in response to vwiencek)I'm trying to track down the same issue. I was initially adding the message using FacesMessages in the authenticate method as is outlined in the reference docs. Switching to using the org.jboss.seam.loginFailed property fixes the duplicate message but the authenticate method is still called a second time.
I've noticed that the booking example of CR3 has the same functionality (failed login causes authenticate method to be called a second time). -
3. Re: identiy.login called twice
csavolainen Oct 31, 2007 1:56 PM (in response to vwiencek)Found http://www.jboss.com/index.html?module=bb&op=viewtopic&t=122033&start=0&postdays=postDays&postorder=postOrder&highlight=highlight in which Peter Muir mentions that there is no guarantee how many times the authenticate method is called. That would explain the duplicate message if they are added to FacesMessages in the authenticate method.[/url]
-
4. Re: identiy.login called twice
shane.bryzak Nov 1, 2007 7:36 PM (in response to vwiencek)The ref docs were incorrect here (I've fixed them in CVS) - it's not the role of the authenticator to add faces messages, as Pete already pointed out.