Browse Source

fix(webapp): proper errors for change email / delete account, fixes #751

Peter Thomassen 2 năm trước cách đây
mục cha
commit
9d0a9448cd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      www/webapp/src/utils.js

+ 1 - 1
www/webapp/src/utils.js

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