This commit is contained in:
Bastian Wagner
2024-09-08 17:20:03 +02:00
parent 23a7216de9
commit 5d72978d1e

View File

@@ -38,7 +38,15 @@ export class ResetPwComponent {
resetPassword() {
this.http.post('api/auth/reset', this.resetPw.value).subscribe({
this.http.post('api/auth/reset', this.resetPw.value)
.pipe(
this.toast.observe({
loading: 'Sende Mail...',
error: 'Mail konnte nicht gesendet werden',
success: 'Mail zum Zurücksetzen des Passworts wurde verschickt'
})
)
.subscribe({
next: res => {
console.log(res);
}