don't login onto the logout site

This commit is contained in:
MiniDigger | Martin 2022-06-12 11:24:54 +02:00
parent d39753b2d6
commit e3cff24685
2 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,7 @@ Stuff that needs to be done before I consider this a successful POC
- [ ] validation of forms/inputs etc (mostly done)
- [ ] check that we have loading states everywhere, on like buttons and whatever (mostly done)
- [x] add header calls to all pages
- [ ] notifications needs to be visible in header and in the dropdown
- [x] notifications needs to be visible in header and in the dropdown
## Big list of pages!

View File

@ -9,6 +9,9 @@ import { useRequest } from "~/composables/useResReq";
class Auth {
loginUrl(redirectUrl: string): string {
if (redirectUrl.endsWith("?loggedOut")) {
redirectUrl = redirectUrl.replace("?loggedOut", "");
}
return `/login?returnUrl=${import.meta.env.HANGAR_PUBLIC_HOST}${redirectUrl}`;
}