javascript - Firebase 自定义操作网址中断验证
问题描述
我没有尝试验证任何帐户并在 firebase 身份验证中更改操作 URL 以进行电子邮件验证,现在当用户单击操作链接时,它不会验证用户并且操作链接没有重置按钮。我试过输入它的占位符值但没有用。有谁知道我该如何解决这个问题?还是我必须做任何额外的步骤来实际验证用户。
firebase.auth().createUserWithEmailAndPassword(this.email, this.password)
.then(cred => {
ref.set({
username: this.username,
avatar: this.signAvatar,
user_id: cred.user.uid,
villaComments: [],
ratedVillas: []
})
}).then(() => {
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
user.sendEmailVerification();
} })
解决方案
我打错了。当我写下它的旧值时。
推荐阅读
- robotics - 单传感器测量后生成概率密度
- pandas - 重新采样数据框后如何删除不需要的列
- mysql - 从两个 DB 表中选择输出到一个输出
- java - 获取范围内wifi路由器的mac地址
- java - 如何停止 JMH 基准测试?
- php - 动态任务调度器 - Laravel
- wpf - 在 XAML 中的 DrawingBrush 中旋转渐变
- python - 在 scikit-learn 版本 0.21.2 的 OneHotEncoder 中使用 active_features_ 和 feature_indices_
- wordpress - 更改运输方式后 Woocommerce 结帐页面重新加载
- c++ - Qt 错误消息“qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS 初始化失败”