From ea148ac13edf96a54c02edc3d37ac91c255aebf3 Mon Sep 17 00:00:00 2001 From: gbrodman Date: Tue, 16 Sep 2025 14:39:19 -0400 Subject: [PATCH] Show success message on password reset (#2826) --- console-webapp/dev-proxy.config.json | 2 +- .../passwordReset/passwordResetVerify.component.ts | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/console-webapp/dev-proxy.config.json b/console-webapp/dev-proxy.config.json index aee00a9a3..5457cd7bb 100644 --- a/console-webapp/dev-proxy.config.json +++ b/console-webapp/dev-proxy.config.json @@ -1,7 +1,7 @@ { "/console-api": { - "target": "http://localhost:8080", + "target": "http://[::1]:8080", "secure": false, "logLevel": "debug", "changeOrigin": true diff --git a/console-webapp/src/app/shared/components/passwordReset/passwordResetVerify.component.ts b/console-webapp/src/app/shared/components/passwordReset/passwordResetVerify.component.ts index bce4983f9..fe4eb7866 100644 --- a/console-webapp/src/app/shared/components/passwordReset/passwordResetVerify.component.ts +++ b/console-webapp/src/app/shared/components/passwordReset/passwordResetVerify.component.ts @@ -24,6 +24,7 @@ import { PasswordResults, } from './passwordInputForm.component'; import EppPasswordEditComponent from 'src/app/settings/security/eppPasswordEdit.component'; +import { MatSnackBar } from '@angular/material/snack-bar'; export interface PasswordResetVerifyResponse { registrarId: string; @@ -54,7 +55,8 @@ export class PasswordResetVerifyComponent { protected backendService: BackendService, protected registrarService: RegistrarService, private route: ActivatedRoute, - private router: Router + private router: Router, + private _snackBar: MatSnackBar ) {} ngOnInit() { @@ -99,7 +101,10 @@ export class PasswordResetVerifyComponent { this.isLoading = false; this.errorMessage = err.error; }, - next: (_) => this.router.navigate(['']), + next: (_) => { + this.router.navigate(['']); + this._snackBar.open('Password reset completed successfully'); + }, }); } }