mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
Fixed logging out not redirect correctly in reverse proxy (#414)
* Remove check due to logout always success * Added console log * Remove console.log * Up server version
This commit is contained in:
parent
0ac9fe5a54
commit
03e7a254a2
@ -11,6 +11,6 @@ export interface IServerVersion {
|
|||||||
export const serverVersion: IServerVersion = {
|
export const serverVersion: IServerVersion = {
|
||||||
major: 1,
|
major: 1,
|
||||||
minor: 19,
|
minor: 19,
|
||||||
patch: 0,
|
patch: 1,
|
||||||
build: 0,
|
build: 0,
|
||||||
};
|
};
|
||||||
|
@ -43,11 +43,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const logOut = async () => {
|
const logOut = async () => {
|
||||||
const res = await fetch('auth/logout', { method: 'POST' });
|
await fetch('auth/logout', { method: 'POST' });
|
||||||
|
goto('/auth/login');
|
||||||
if (res.status == 200 && res.statusText == 'OK') {
|
|
||||||
goto('/auth/login');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user