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 UI 并在密码验证时获得回报?
您正在寻找:
springSecurityService.encodePassword
如果你已经用盐配置了你的系统,你也将需要它。只需对字符串进行编码,然后从您的用户对象中读取编码后的字符串,然后比较两者
文件:
http://grails-plugins.github.com/grails-spring-security-core/docs/manual/guide/single.html#6.2%20SpringSecurityService