This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JBoss DatabaseServerLoginModule question... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss DatabaseServerLoginModule question..." Watch "JBoss DatabaseServerLoginModule question..." New topic

JBoss DatabaseServerLoginModule question...

Kevin Lam
Ranch Hand

Joined: Oct 27, 2005
Posts: 68
Hi all,

I have configured my web app to use DatabaseServerLoginModule, it works fine so far, but I also need to make sure that after 3 failed attempts, the user will be set to password locked state.

I am currently using a form with j_security_check action and j_username and j_password. On sucessful login, i can access the principals, but I also want to get the username from the form when the user failed the login... I tried request.getParameter("j_username" in the error page but with no luck...

Could anyone tell me how to get the username so that I can update the user status in the database, many thx

Sanju Thomas
Ranch Hand

Joined: Dec 29, 2004
Posts: 243
Extend the DatabaseServerLoginModule and write what ever you want. then use that class your login module.
I agree. Here's the link:
subject: JBoss DatabaseServerLoginModule question...
It's not a secret anymore!