简体   繁体   English

如何使用Spring Security Core插件在Grails应用程序中忘记密码?

[英]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. 在我的grails应用程序中,我正在使用Spring Security核心插件来确保安全性,并使用电子邮件确认插件来确保电子邮件的有效性,现在我需要实现忘记密码的代码。

Do i need to use spring security ui plugin or i can achiebe it with existing plugins? 我需要使用Spring Security ui插件还是可以使用现有插件实现它?

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. 因此,UI插件中的工作流程涉及通过电子邮件重置密码。

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. 您可以安装它,但不必使用UI插件-随时复制实现并在您的应用程序中使用它。

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. 这是我使用Acegi安全性插件(Spring Security插件的祖先)的时候,但是AFAIK也应该与Spring Security插件一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM