grails spring security验证用户原密码

def springSecurityService

//isPasswordValid(params1,params2,params3)

//params1:原密码 params2:输入的原密码,params3:Salt值

//springSecurityService?.currentUser?.password当前登录用户密码

springSecurityService.passwordEncoder.isPasswordValid(springSecurityService?.currentUser?.password,"123456",null)

你可能感兴趣的:(grails spring security验证用户原密码)