File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss DatabaseServerLoginModule question...

 
Kevin Lam
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 243
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Extend the DatabaseServerLoginModule and write what ever you want. then use that class your login module.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic