Skip to content

Commit

Permalink
[updated] url forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchristianqr committed Jan 30, 2023
1 parent 980a120 commit 1e062c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ export class AuthService {
* @param passwordResetEmail
*/
forgotPassword(passwordResetEmail: string) {
return this.afAuth.sendPasswordResetEmail(passwordResetEmail)
return this.afAuth.sendPasswordResetEmail(passwordResetEmail, {
url: 'https://alexchristianqr.github.io/game-apps/#/login',
})
}

/**
Expand Down
5 changes: 4 additions & 1 deletion src/app/modules/auth/forgot/forgot.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ export class ForgotComponent {
.then(() => {
this.submitted = undefined
this.loading = false
this.snackBar.open('Enlace enviado con éxito, por favor revise su correo', '', {
this.snackBar.open('Enlace enviado con éxito, porfavor revise su correo', '', {
duration: 3000,
})
})
.catch(() => {
this.submitted = false
this.loading = false
this.snackBar.open('El enlace no se ha enviado', '', {
duration: 3000,
})
})
}
}

0 comments on commit 1e062c2

Please sign in to comment.