aspose file tools*
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 JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss DatabaseServerLoginModule question..." Watch "JBoss DatabaseServerLoginModule question..." New topic
Author

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

Kevin
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.
 
jQuery in Action, 2nd edition
 
subject: JBoss DatabaseServerLoginModule question...