简体   繁体   English

Firebase 用户注册 email 并通过 email 向他们发送密码

[英]Firebase user signup with email and send them password via email

I'm trying to allow users to sign up to a Firebase website using only their email and phone number.我试图允许用户仅使用他们的 email 和电话号码注册 Firebase 网站。 At a later time, I would like to send them their auto-generated password via email.稍后,我想通过 email 向他们发送自动生成的密码。 Is this possible to do with Firebase Auth or Realtime Database?这可能与 Firebase Auth 或实时数据库有关吗?

Sure thing.肯定的事。 You'll have to create the account through the Admin SDK, so in a trusted environment like your dev machine, a server you control, or Cloud Functions.您必须通过管理员 SDK 创建帐户,因此在您的开发机器、您控制的服务器或 Cloud Functions 等受信任的环境中。 There you call createUser(...) with the email the user entered, the a temporary password that you made up.在那里,您使用用户输入的 email 调用createUser(...) ,这是您编写的临时密码。

You could do the same client-side, but in that case the password would be determined from the client too, which wouldn't be secure.可以在客户端执行相同的操作,但在这种情况下,密码也将由客户端确定,这不安全。

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

相关问题 Firebase-创建用户帐户后通过电子邮件发送密码 - Firebase - Send Password via Email after User Account Creation Firebase 无法使用电子邮件和密码注册用户 - Firebase cannot signup users with email and password 使用Firebase注册后如何获取userData(以及电子邮件和密码) - How to get userData after signup with firebase (with email and password) Firebase 向用户发送 email 验证 - Firebase send email verification to user 在 React 登录组件中,Firebase 登录注册正在运行,但是当我尝试发送重置密码链接时,则未发送到电子邮件 - In React Login component Firebase Login signup is working but when I am trying to send a reset password Link then is Not sending to email Javascript和Firebase 3 - 使用电子邮件和密码创建用户 - Javascript and Firebase 3 - Create user with Email and password Javascript和Firebase-使用电子邮件和密码以及onAuthStateChange创建用户 - Javascript and Firebase - Create user with Email and password and onAuthStateChange 如何使用 email 登录用户并使用 firebase + svelte 登录密码? - How to sign in a user with email and password with firebase + svelte? 通过 email 重置密码 - Resetting password via email 通过 email 客户端发送 email, - send email via email client,
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM