Continued work on remember me tokens.

This commit is contained in:
rainbow napkin 2025-10-20 07:49:41 -04:00
parent 95ed2fa403
commit e00e5a608b
11 changed files with 113 additions and 36 deletions

View file

@ -755,14 +755,14 @@ class canopyAjaxUtils{
}
}
async login(user, pass, verification){
async login(user, pass, rememberMe, verification){
const response = await fetch(`/api/account/login`,{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-csrf-token": utils.ajax.getCSRFToken()
},
body: JSON.stringify(verification ? {user, pass, verification} : {user, pass})
body: JSON.stringify(verification ? {user, pass, rememberMe, verification} : {user, rememberMe, pass})
});
if(response.ok){