Compare commits

...

2 commits

Author SHA1 Message Date
816c659b5c
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>
2025-05-21 07:10:02 +00:00
d02c3d24f1 fix: Fix bug where the password reset doesnt redirect to login
All checks were successful
CI / Get Changed Files (pull_request) Successful in 7s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Successful in 18s
CI / oxlint (pull_request) Successful in 18s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 22s
CI / test-build (pull_request) Successful in 31s
2025-05-21 09:02:31 +02:00

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);