diff --git a/layouts/auth.vue b/layouts/auth.vue
index 5d44793..7d21f00 100644
--- a/layouts/auth.vue
+++ b/layouts/auth.vue
@@ -18,7 +18,7 @@
Instance URL is set to
{{ instanceUrl }}
@@ -37,14 +37,12 @@ const apiVersion = useRuntimeConfig().public.apiVersion;
const apiBase = useCookie("api_base");
const registrationEnabled = useState("registrationEnabled", () => true);
-const query = useRoute().query as Record
;
+const route = useRoute();
+
+const query = route.query as Record;
const searchParams = new URLSearchParams(query);
searchParams.delete("token");
-const resetPasswordUrl = `/reset-password?${searchParams}`;
-
-const auth = useAuth();
-
onMounted(async () => {
instanceUrl.value = useCookie("instance_url").value;
console.log("set instance url to:", instanceUrl.value);
diff --git a/middleware/auth.global.ts b/middleware/auth.global.ts
index 4fdfead..e6d5128 100644
--- a/middleware/auth.global.ts
+++ b/middleware/auth.global.ts
@@ -16,7 +16,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
}
}
- if (["/login", "/register", "/reset-password"].includes(to.path) && !Object.keys(to.query).includes("special")) {
+ if (["/login", "/register", "/recover", "/reset-password"].includes(to.path) && !Object.keys(to.query).includes("special")) {
console.log("path is login or register");
const apiBase = useCookie("api_base");
console.log("apiBase gotten:", apiBase.value);
diff --git a/pages/recover.vue b/pages/recover.vue
new file mode 100644
index 0000000..a886d87
--- /dev/null
+++ b/pages/recover.vue
@@ -0,0 +1,89 @@
+
+
+ {{ errorValue }}
+
+
+ If an account with that username/email exists, an email will be sent to it shortly.
+
+
+ Don't have an account? Register one!
+
+
+ Already have an account? Log in!
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/reset-password.vue b/pages/reset-password.vue
index f579fc5..83e1f1f 100644
--- a/pages/reset-password.vue
+++ b/pages/reset-password.vue
@@ -1,50 +1,27 @@
{{ errorValue }}
-
-
-
- If an account with that username/email exists, an email will be sent to it shortly.
+
-
-
- Don't have an account? Register one!
-
-
- Already have an account? Log in!
-
+
+
+
+