简体   繁体   English

设备验证-此gem的标准行为是什么?

[英]Devise authentication - what is the standard behaviour of this gem?

Devise authentication - what is the default behaviour of this gem? 设备验证-此gem的默认行为是什么?

I mean: 我的意思是:

Should the user be redirected to site's root after password reset confirmation has been sent so, that I even do not see confirmation message, or, if it happens, it means some problems in my application? 发送密码重置确认后,应该将用户重定向到站点的根目录,这样我什至看不到确认消息,或者,如果发生此消息,则意味着我的应用程序中存在一些问题?

默认情况下,它在成功发送https://github.com/plataformatec/devise/blob/master/app/controllers/devise/passwords_controller.rb后成功重定向到new_session_path

Do you have put in the settings for email delivery​​? 您是否已经设置了电子邮件发送设置? if not so no email can be send 如果没有,则无法发送电子邮件

if you have do that after a forget PW request you get a email with a link so you can reset the PW and you get redirect to root 如果您在忘记PW请求后执行了此操作,则会收到一封带有链接的电子邮件,以便您可以重置PW并重定向到root用户

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

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