fix another mfa regression

This commit is contained in:
Moon.eth 2026-07-24 14:26:25 +09:00
commit de680501a5
2 changed files with 2 additions and 2 deletions

View file

@ -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',

View file

@ -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' })
}) })