Skip to content

Commit

Permalink
[#69216] frontend: faster login redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejWas authored and glatosinski committed Nov 28, 2024
1 parent 82e0075 commit bacfaad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0
-->

<template>
<div id="main">
<div id="main" v-if="loggedIn">
<div id="logobar">
<Logo id="logo" />

Expand Down Expand Up @@ -192,6 +192,8 @@ export default {
mounted() {
if (localStorage.getItem('access_token') !== null) {
this.loggedIn = true;
} else {
window.location.href = LOGIN_PATH;
}
},
};
Expand Down

0 comments on commit bacfaad

Please sign in to comment.