使用restful_authentication 添加电子邮件验证是否容易?

发布于 2024-08-04 21:23:09 字数 101 浏览 3 评论 0原文

开发新应用程序并使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

热风软妹 2024-08-11 21:23:09

是的,您可以使用选项 -include-validation 重新运行生成器。它将向您的模型用户和会话添加额外的代码。

Yes, you can just rerun the generator with option -include-validation. It will add extra code to your model user and session.

尾戒 2024-08-11 21:23:09

如果您刚刚开始,您应该看看thoughtbot 的clearance。这是一个很棒的身份验证插件。

If you're just starting you should take a look at clearance by thoughtbot. It's a great authentication plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文