首页 > 解决方案 > 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();
           } })

标签: javascriptfirebasefirebase-authenticationnuxt.js

解决方案


我打错了。当我写下它的旧值时。


推荐阅读