Browse Source

fix(webapp): removes dead code

Nils Wisiol 3 years ago
parent
commit
2e74fb7293
2 changed files with 0 additions and 25 deletions
  1. 0 3
      www/webapp/src/views/DeleteAccount.vue
  2. 0 22
      www/webapp/src/views/Login.vue

+ 0 - 3
www/webapp/src/views/DeleteAccount.vue

@@ -107,9 +107,6 @@
       email_errors: [],
     }),
     mounted() {
-      if ('email' in this.$route.params && this.$route.params.email !== undefined) {
-        this.new_email = this.$route.params.email;
-      }
       this.initialFocus();
     },
     async created() {

+ 0 - 22
www/webapp/src/views/Login.vue

@@ -121,8 +121,6 @@ export default {
     ],
     hide_password: true,
     errors: [],
-    reset_dialog: false,
-    reset_errors: [],
   }),
   methods: {
     async login() {
@@ -168,26 +166,6 @@ export default {
       }
       this.working = false;
     },
-    async reset() {
-      this.working = true;
-      this.reset_errors = [];
-      try {
-        await HTTP.post('auth/account/reset-password/', { email: this.email });
-        this.reset_dialog = false;
-        this.$router.replace({ path: '/reset' });
-      } catch (error) {
-        if (error.response) {
-          // The request was made and the server responded with a status code
-          // that falls out of the range of 2xx
-          this.reset_errors = ['Something went wrong at the server, but we currently do not know why. The support was already notified.'];
-        } else if (error.request) {
-          this.reset_errors = ['Cannot contact our servers. Are you offline?'];
-        } else {
-          this.reset_errors = [error.message];
-        }
-      }
-      this.working = false;
-    },
   },
 };
 </script>