Merge pull request 'fix: Fix bug where the password reset doesnt redirect to login (CAS-82)' (!204) from bugfix/password-reset-redirect into main
Some checks failed
Release / Build Backend Image (push) Blocked by required conditions
Release / Build Frontend Image (push) Blocked by required conditions
Release / Release (push) Has been cancelled

Reviewed-on: #204
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
This commit is contained in:
Jan K9f 2025-05-21 07:10:02 +00:00
commit 816c659b5c
No known key found for this signature in database
GPG key ID: 944223E4D46B7412

View file

@ -87,6 +87,10 @@ export class RecoverPasswordComponent implements OnInit {
'Wenn ein Konto mit dieser E-Mail existiert, wird eine E-Mail mit weiteren Anweisungen gesendet.'
);
this.emailForm.reset();
setTimeout(() => {
this.closeDialog.emit();
this.switchToLogin.emit();
}, 2000);
},
error: (err) => {
this.isLoading.set(false);