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) => {
|
||||
if (error.errorData === 'mfa_required') {
|
||||
this.requireMFA({ settings: error })
|
||||
this.requireMFA({ settings: error.error })
|
||||
} else if (error.identifier === 'password_reset_required') {
|
||||
this.$router.push({
|
||||
name: 'password-reset',
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export default {
|
|||
}
|
||||
|
||||
verifyRecoveryCode(data)
|
||||
.then((result) => {
|
||||
.then(({ data: result }) => {
|
||||
this.login(result).then(() => {
|
||||
this.$router.push({ name: 'friends' })
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue