Merge pull request 'mfa-fixes' (#3517) from moonman/pleroma-fe:mfa-fixes into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma-fe/pulls/3517
This commit is contained in:
HJ 2026-07-24 11:18:35 +00:00
commit 99d4b5c63e
3 changed files with 4 additions and 3 deletions

View file

@ -0,0 +1 @@
Fix MFA login and recovery code authentication.

View file

@ -63,8 +63,8 @@ const LoginForm = {
})
})
.catch((error) => {
if (error.errorData?.error === 'mfa_required') {
this.requireMFA({ settings: error })
if (error.errorData === 'mfa_required') {
this.requireMFA({ settings: error.error })
} else if (error.identifier === 'password_reset_required') {
this.$router.push({
name: 'password-reset',

View file

@ -44,7 +44,7 @@ export default {
}
verifyRecoveryCode(data)
.then((result) => {
.then(({ data: result }) => {
this.login(result).then(() => {
this.$router.push({ name: 'friends' })
})