Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在启用spring security的情况下登录grails应用程序后,如果我们在应用程序中实现了锁屏功能,如何重新检查用户输入的密码。
如果您要将编码密码保存到数据库,那么您需要执行以下操作
def userInstance = ... //get user instance if (springSecurityService.encodePassword(params.pass) != userInstance.password) { ... }