From f869e209b70d6c5588235b9f26eb5b62f7c5691c Mon Sep 17 00:00:00 2001 From: Filip Borum Poulsen Date: Wed, 26 Apr 2023 14:49:25 +0200 Subject: [PATCH] Added both status 200 and 204 on register --- client/src/views/Register.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/views/Register.vue b/client/src/views/Register.vue index adc2c14..8c4e6bf 100644 --- a/client/src/views/Register.vue +++ b/client/src/views/Register.vue @@ -56,7 +56,7 @@ export default { this.lastnameError = error.message; } } - } else if (res.status === 204) { + } else if (res.status === 200 || res.status === 204) { this.setLoginState(true); if (this.$route.query.ref) { this.$router.push({ path: this.$route.query.ref.toString() });