Skip to content

Commit

Permalink
fix(webapp): proper errors for change email / delete account, fixes #751
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Jul 17, 2023
1 parent c94b9b4 commit 20395a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/webapp/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function _digestError(error, app) {
return ['You are not logged in.'];
}
} else if (error.response.status === 403) {
if (useUserStore().authenticated) { // MFA
if (useUserStore().authenticated && !['change-email', 'delete-account'].includes(app.$route.name)) { // MFA
if (app.$route.name !== 'mfa') {
app.$router.push({name: 'mfa', query: {redirect: app.$route.fullPath}});
}
Expand Down

0 comments on commit 20395a4

Please sign in to comment.