【发布时间】:2020-08-06 21:44:52
【问题描述】:
我正在使用 Javascript 和 Vue 并将 firebase 与我的应用程序集成
场景(已建成)
- 我有一个
sign in用户登录页面 - 对于要登录的用户,
emailVerified属性应为 true
问题
- 只有使用
firebase.auth().createUserWithEmailAndPassword(email, password)方法才能发送验证邮件
注册方式
signup: async (email, password) => {
const user = await firebase.auth().createUserWithEmailAndPassword(email, password)
await user.user.sendEmailVerification()
return `Check your email for verification mail before logging in`
},
所需的解决方案
我从
firebase console创建一个新用户我将
email作为参数或uid传递,该方法应向用户发送验证电子邮件,以便他们验证电子邮件完全废弃
signup方法,因为我不再需要它来发送验证邮件了
有没有在不登录的情况下发送验证电子邮件?
【问题讨论】:
标签: javascript firebase vue.js firebase-authentication