mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-06 13:56:14 +08:00
don't login onto the logout site
This commit is contained in:
parent
d39753b2d6
commit
e3cff24685
@ -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!
|
||||
|
||||
|
@ -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}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user