Continued work on remember me tokens.
This commit is contained in:
parent
95ed2fa403
commit
e00e5a608b
11 changed files with 113 additions and 36 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue