有没有办法对 Firebase 用户创建和/或密码重置进行电子邮件确认? [英] Is there any way to do email confirmation for Firebase user creation and/or password reset?

查看:23
本文介绍了有没有办法对 Firebase 用户创建和/或密码重置进行电子邮件确认?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题说明了一切.在 Firebase 中,我如何在用户创建帐户时确认电子邮件,或者就此而言,通过电子邮件重置密码.

Question says it all. In Firebase, how do I confirm email when a user creates an account, or, for that matter, do password reset via email.

我可以更广泛地问:有没有办法从 Firebase 发送电子邮件?例如.通知等.这不是您通常会在客户端做的事情.

I could ask more broadly: is there any way to send emails out from Firebase? E.g. notifications, etc. This isn't the kind of thing you would usually do client-side.

推荐答案

这需要在 firebase 之外完成.我将用户存储在/users/并保留他们的状态(PENDING、ACTIVE、DELETED).我有一个小型服务,可以监控处于 PENDING 状态的用户并发送确认电子邮件.其中有一个指向我创建的用于将用户状态更新为 ACTIVE 的网络服务的链接.

This would need to be done outside of firebase. I store users at /users/ and keep a status on them (PENDING, ACTIVE, DELETED). I have a small service that monitors users of a PENDING status and sends out a confirmation email. Which has a link to a webservice I've created to update the user status to ACTIVE.

这篇关于有没有办法对 Firebase 用户创建和/或密码重置进行电子邮件确认?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆