Print username and password used in spring security authentication

不问归期 提交于 2020-01-05 10:02:33

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/21468570/print-username-and-password-used-in-spring-security-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!