Finished up with email password reset system.
This commit is contained in:
parent
3671b43789
commit
478edeeddf
13 changed files with 233 additions and 34 deletions
|
|
@ -54,7 +54,7 @@ class registerPrompt{
|
|||
this.verification = event.detail.payload;
|
||||
}
|
||||
|
||||
register(){
|
||||
async register(){
|
||||
//If altcha verification isn't complete
|
||||
if(this.verification == null){
|
||||
//don't bother
|
||||
|
|
@ -63,7 +63,7 @@ class registerPrompt{
|
|||
|
||||
//If we're initiating a password change request
|
||||
if(this.initiating){
|
||||
|
||||
await utils.ajax.requestPasswordReset(this.user.value, this.verification);
|
||||
//If we're completing a password change
|
||||
}else{
|
||||
//if the confirmation password doesn't match
|
||||
|
|
@ -74,7 +74,7 @@ class registerPrompt{
|
|||
}
|
||||
|
||||
//Send the registration informaiton off to the server
|
||||
utils.ajax.resetPassword(this.token , this.pass.value , this.passConfirm.value , this.verification);
|
||||
await utils.ajax.resetPassword(this.token , this.pass.value , this.passConfirm.value , this.verification);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue