mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add a noauto query param to login
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user