Add a noauto query param to login

This commit is contained in:
QuantumEntangledAndy
2024-10-07 09:17:43 +07:00
parent 329469021e
commit 1cda7003d1
3 changed files with 27 additions and 10 deletions

View File

@ -848,7 +848,14 @@ async function logout() {
headers: getRequestHeaders(),
});
window.location.reload();
// On an explicit logout stop auto login
// to allow user to change username even
// when auto auth (such as authelia or basic)
// would be valid
const urlParams = new URLSearchParams(window.location.search);
urlParams.set('noauto', 'true');
window.location.search = urlParams.toString();
}
/**