[jboss-user] [JBoss Seam] - Re: Two login pages/methods

david.spark do-not-reply at jboss.com
Thu Jan 17 10:07:13 EST 2008


Oh right, I see what you're trying to do now :-)

I think what I would do is take the username / password and in the Authenticate method try and validate it as both a user and an admin and then set the role to whichever one it validates as.

Obviously the one assumption here is that there will never be a user with the same user name as an existing employee ID but you could put measures in place to prevent this.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120929#4120929

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120929



More information about the jboss-user mailing list