This content has been marked as final.
Show 2 replies
-
1. Re: Security Design Question
damianharvey Nov 30, 2007 2:09 PM (in response to javalover75)Set up a navigation rule that directs the user to your reactivation page from login (eg. based on some status):
<navigation from-action="#{identity.login}"> <rule if="#{identity.loggedIn && user.status == 'ACTIVE'}"> <redirect view-id="/normalHomePage.xhtml"/> </rule> <rule if="#{identity.loggedIn && user.status == 'INACTIVE'}"> <redirect view-id="/activationPage.xhtml"/> </rule> </navigation>
You would set the status in the authenticator class and outject the User bean (or wherever you want to store the status).
Cheers,
Damian. -
2. Re: Security Design Question
javalover75 Nov 30, 2007 5:07 PM (in response to javalover75)Damian,
Thanks for the quick reply. It is appreciated. This helped me get past my mind block and solve my problem.
Thanks Again.