使用restful_authentication 添加电子邮件验证是否容易?
开发新应用程序并使用 Restful 身份验证。我试图让它尽可能简单地开始然后迭代,所以我没有使用激活电子邮件功能生成,计划稍后添加它。稍后使用现有插件是否有一种简单的方法可以做到这一点?
Working on a new app and using restful-authentication. I was trying to make it as simple as possible to start and then iterate, so I didn't generate with the activation email functionality, planning to add it later down the road. Is there an easy way to do this later on using the existing plugin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您可以使用选项 -include-validation 重新运行生成器。它将向您的模型用户和会话添加额外的代码。
Yes, you can just rerun the generator with option -include-validation. It will add extra code to your model user and session.
如果您刚刚开始,您应该看看thoughtbot 的clearance。这是一个很棒的身份验证插件。
If you're just starting you should take a look at clearance by thoughtbot. It's a great authentication plugin.