[jboss-user] [JBoss Seam] - Re: Security Design Question
damianharvey
do-not-reply at jboss.com
Fri Nov 30 14:09:17 EST 2007
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109432#4109432
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109432
More information about the jboss-user
mailing list