how to get forgot password with grails application using spring security core plugin?
In my grails application,i am using spring security core plugin for security,and email confirmation plugin for email validity,now i need to implement code for forget password.
Do i need to use spring security ui plugin or i can achieb开发者_如何学运维e it with existing plugins?
With thanks,
Since passwords are stored with one-way encryption, there's no way to retrieve the original cleartext password (unless you store it unencrypted, which is a bad idea). So the workflow in the UI plugin involves resetting the password via email.
You can install that, but you don't have to use the UI plugin - feel free to copy the implementation and use it in your application.
I implemented a reset password feature using the email confirmation plugin. This was when I was using the Acegi security plugin (the Spring Security plugin's ancestor), but AFAIK it should work with the Spring Security plugin too.
精彩评论