feat: implement resetting of password if forgotten
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
SauceyRed 2025-07-14 22:28:40 +02:00
parent 42ed743054
commit 17791fc017
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462
5 changed files with 115 additions and 2 deletions

View file

@ -16,7 +16,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
}
}
if (["/login", "/register"].includes(to.path) && !Object.keys(to.query).includes("special")) {
if (["/login", "/register", "/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);