Fix login

This commit is contained in:
Bruno Rybársky 2024-02-05 22:15:10 +01:00
parent 9db95d6e1f
commit 554d2d93cb
2 changed files with 9 additions and 0 deletions

@ -1,3 +1,4 @@
function doAccountAction(requestData, successMessage, failureMessage, silent=false) {
return fetch('/account', {
method: 'POST',
@ -125,6 +126,12 @@ function navigateTo(site, page){
data.append("site", site);
data.append("page", page);
doPageAction(data);
pageData.currentSite = site;
pageData.currentPage = page;
}
function softReload(){
navigateTo(pageData.currentSite, pageData.currentPage);
}
function refreshNavbar(){

@ -3,6 +3,8 @@
const email = document.getElementById("login_email").value;
const password = document.getElementById("login_password").value;
doLogin(email, password);
refreshNavbar();
softReload();
}
function doLogin(email, password) {