【发布时间】:2018-02-09 08:58:44
【问题描述】:
我尝试创建重置密码页面。但是,如果我应用它向我显示的操作代码,则该代码无效。但它应该是有效的。所以我想我这样做的方式是错误的?!我还有一个验证电子邮件页面,我也在其中使用 applyActionCode,它工作正常。是的,我 100% 确定 oobCode 一定是正确的。
console.log(this.$route.query.oobCode.toString())
firebase.auth().applyActionCode(this.$route.query.oobCode.toString()).then(
(user) => {
cosnole.log('user', user)
user.updatePassword(this.password).then(
function(user) {
console.log('password updated')
}).catch(
function(err) {
console.log(err.message)
}
)
}).catch(
function(err) {
console.log(err.message)
}
)
【问题讨论】:
-
您能否显示您在问题中收到的错误消息?
-
操作码无效。如果代码格式错误、过期或已被使用,则可能会发生这种情况。
标签: node.js firebase firebase-authentication