【发布时间】:2018-11-28 05:22:30
【问题描述】:
我正在向用户发送密码重置电子邮件;当请求数量超过某个级别时,Firebase 会引发错误 RESET_PASSWORD_EXCEED_LIMIT
我正在尝试捕获此消息以提醒用户(帐户在一段时间内不可用......找不到多长时间......)但我无法正确抓取消息..
auth.sendPasswordResetEmail(this.email)
.catch((error) => {
console.log('ERROR: ', ...
console.log('ERROR: ', error.message)
ERROR: {"error":{"code":400,"message":"RESET_PASSWORD_EXCEED_LIMIT","errors":[{"message":"RESET_PASSWORD_EXCEED_LIMIT","domain":"global","reason":"invalid"}]}}
console.log('ERROR: ', error.message.error.message)
错误:未定义
console.log('ERROR: ', error.message['"error"'])
错误:未定义
console.log('ERROR: ', error.message['"error"'])
ERROR: undefined
这是一种很奇怪的错误对象格式
【问题讨论】:
标签: firebase vue.js firebase-authentication