fix another mfa regression
This commit is contained in:
parent
94a284dd95
commit
de680501a5
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ const LoginForm = {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (error.errorData === 'mfa_required') {
|
if (error.errorData === 'mfa_required') {
|
||||||
this.requireMFA({ settings: error })
|
this.requireMFA({ settings: error.error })
|
||||||
} else if (error.identifier === 'password_reset_required') {
|
} else if (error.identifier === 'password_reset_required') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'password-reset',
|
name: 'password-reset',
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
verifyRecoveryCode(data)
|
verifyRecoveryCode(data)
|
||||||
.then((result) => {
|
.then(({ data: result }) => {
|
||||||
this.login(result).then(() => {
|
this.login(result).then(() => {
|
||||||
this.$router.push({ name: 'friends' })
|
this.$router.push({ name: 'friends' })
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue