The Strong Programmer
The Strong Programmer

Reputation: 677

Print username and password used in spring security authentication

I have been having some trouble logging in when typing the credentials in the login page. For some reason, I am typing a wrong password even though I have checked the correct one in the database. So I thought of printing in the console the password that I type. How can I do that?

Upvotes: 1

Views: 1471

Answers (1)

Burt Beckwith
Burt Beckwith

Reputation: 75671

I wrote up an approach at http://burtbeckwith.com/blog/?p=2029 - this is a followup to this earlier post: http://burtbeckwith.com/blog/?p=2003

As I mention in the post, since this will print cleartext passwords on the console, be sure to remove this as soon as you determine and fix what's misconfigured.

Upvotes: 4

Related Questions