Skip to content

Commit

Permalink
fix no auth bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SazukinPavel committed Jan 9, 2025
1 parent a997775 commit cd9d39e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,17 +391,17 @@ new Vue({
}

if (session) {
this.authenticated = session.authenticated;
this.requiresPassword = session.requiresPassword;
await this.refresh({
this.authenticated = session.authenticated || session.success;
this.requiresPassword = session.requiresPassword || false;
this.refresh({
updateCharts: this.updateCharts,
});
}
} catch (err) {
alert(err.message || err.toString());
} finally {
if (password || token) {
window.location.search = "";
window.history.replaceState(null, null, "");
}
}
}
Expand Down

0 comments on commit cd9d39e

Please sign in to comment.