打印春季安全认证中使用的用户名和密码 [英] Print username and password used in spring security authentication

查看:82
本文介绍了打印春季安全认证中使用的用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在登录页面输入凭据时遇到了一些麻烦。出于某种原因,即使我已经在数据库中检查了正确的密码,我仍然输入了错误的密码。所以我想在控制台上输入我输入的密码。我怎么能这样做?

我在 http://burtbeckwith.com/blog/?p=2029 - 这是此前文章的后续版本:

正如我在文章中提到的那样,因为这将在控制台上打印明文密码,所以一定要在确定并修正配置错误时立即删除。


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?

解决方案

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.

这篇关于打印春季安全认证中使用的用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆