possible fix for login loop by removing hardcoded address
This commit is contained in:
@@ -18,7 +18,9 @@ import { restartApplication } from '@/api/application';
|
|||||||
|
|
||||||
function goToLogin() {
|
function goToLogin() {
|
||||||
const redirectUrl = encodeURIComponent(window.location.origin + '/join')
|
const redirectUrl = encodeURIComponent(window.location.origin + '/join')
|
||||||
window.location.href = `https://aj17thdevapi.nexuszone.net/login?redirect=${redirectUrl}`;
|
//@ts-ignore
|
||||||
|
const addr = import.meta.env.VITE_APIHOST;
|
||||||
|
window.location.href = `${addr}/login?redirect=${redirectUrl}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let userStore = useUserStore();
|
let userStore = useUserStore();
|
||||||
|
|||||||
Reference in New Issue
Block a user