Continued work on remember me tokens.
This commit is contained in:
parent
95ed2fa403
commit
e00e5a608b
11 changed files with 113 additions and 36 deletions
|
|
@ -21,6 +21,8 @@ class registerPrompt{
|
|||
this.user.value = window.location.search.replace("?user=",'');
|
||||
//Grab pass prompts
|
||||
this.pass = document.querySelector("#login-page-password");
|
||||
//Remember me checkbox
|
||||
this.rememberMe = document.querySelector("#login-page-remember-me");
|
||||
//Grab register button
|
||||
this.button = document.querySelector("#login-page-button");
|
||||
//Grab altcha widget
|
||||
|
|
@ -58,10 +60,10 @@ class registerPrompt{
|
|||
}
|
||||
|
||||
//login with verification
|
||||
utils.ajax.login(this.user.value , this.pass.value, this.verification);
|
||||
utils.ajax.login(this.user.value , this.pass.value, this.rememberMe.checked, this.verification);
|
||||
}else{
|
||||
//login
|
||||
utils.ajax.login(this.user.value, this.pass.value);
|
||||
utils.ajax.login(this.user.value, this.pass.value, this.rememberMe.checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue