From b357ef08ca8cb4ab06f3459001fbd72a0e7b89f5 Mon Sep 17 00:00:00 2001 From: gyuudon3187 Date: Mon, 4 Mar 2024 14:21:48 +0100 Subject: [PATCH 1/2] Revert "Use hash router" This reverts commit dc45b83acfcc7da5d01efc908351425654abdefa. --- src/router/index.ts | 4 ++-- src/stores/auth.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 190f10e..5fb8f8a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHashHistory } from "vue-router"; +import { createRouter, createWebHistory } from "vue-router"; import LoginView from "@/views/applicant/ApplicantLoginView.vue"; import ApplicantRegistrationView from "@/views/applicant/ApplicantRegistrationView.vue"; import ApplicationFormView from "@/views/applicant/ApplicationFormView.vue"; @@ -9,7 +9,7 @@ import HandleApplication from "@/views/recruiter/HandleApplication.vue"; import ApplicantPasswordResetView from "@/views/applicant/ApplicantPasswordResetView.vue"; const router = createRouter({ - history: createWebHashHistory(import.meta.env.BASE_URL), + history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: "/", diff --git a/src/stores/auth.ts b/src/stores/auth.ts index cd2a70f..e36c56a 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -62,7 +62,7 @@ export const useAuthStore = defineStore("auth", () => { return RESTError.None; } else { if (jsonResponse.error === RESTError.MissingPassword) { - resetLink.value = window.location.origin + "/#/password-reset?token=" + jsonResponse.details.reset_token; + resetLink.value = window.location.origin + "/password-reset?token=" + jsonResponse.details.reset_token; } return jsonResponse.error as RESTError; } From 87c0adc082313ccb3c2f33dbe49f00ccc2afa355 Mon Sep 17 00:00:00 2001 From: gyuudon3187 Date: Tue, 5 Mar 2024 15:05:56 +0100 Subject: [PATCH 2/2] Changed 'Bearer:' to 'Bearer ' --- src/components/handle_application/StatusCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/handle_application/StatusCard.vue b/src/components/handle_application/StatusCard.vue index 891060a..0d03a7e 100644 --- a/src/components/handle_application/StatusCard.vue +++ b/src/components/handle_application/StatusCard.vue @@ -49,7 +49,7 @@ function submitStatus(statusKey: StatusKeys) { method: "POST", headers: { "Content-Type": "application/json", - Authorization: `Bearer:${loginToken.value}` + Authorization: `Bearer ${loginToken.value}` }, body: JSON.stringify({ person_id: applicantId.value, status: captializeFirstLetter(statuses[statusKey].i18nPath) }) })