Some authentication fixes (#1804)

This commit is contained in:
Metin Yazici
2026-01-31 17:07:35 +01:00
committed by GitHub
parent aa6f705781
commit 0dece6c135
2 changed files with 40 additions and 16 deletions
+4
View File
@@ -201,10 +201,14 @@ navigator.serviceWorker.register(workerURL, {
document.getElementById("login").addEventListener("submit", (e) => {
const enableEncryption = document.getElementById('clientEncryption').checked;
const params = new URLSearchParams();
const rememberMe = document.getElementById('rememberMe').checked;
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
params.append('username', username);
params.append('password', password);
if (rememberMe) {
params.append('rememberMe', 'true');
}
fetch('.auth', {
method: 'POST',
headers: {