Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit a763bdd

Browse files
vovavova
vova
authored and
vova
committed
Removed the unnecessary url renaming due to angular/router issue that was fixed in v3
1 parent 381473b commit a763bdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/app.routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const HomeRoutes:RouterConfig = [
3131
{path: 'register', component: RegisterComponent},
3232
{path: 'confirmRegistration/:username', component: RegistrationConfirmationComponent},
3333
{path: 'resendCode', component: ResendCodeComponent},
34-
{path: 'forgotPassword2/:email', component: ForgotPassword2Component},
34+
{path: 'forgotPassword/:email', component: ForgotPassword2Component},
3535
{path: 'forgotPassword', component: ForgotPasswordStep1Component},
3636
{path: '', component: HomeLandingComponent}
3737
]

src/app/public/auth.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class ForgotPasswordStep1Component implements CognitoCallback {
173173

174174
cognitoCallback(message:string, result:any) {
175175
if (message == null && result == null) { //error
176-
this.router.navigate(['/home/forgotPassword2', this.email]);
176+
this.router.navigate(['/home/forgotPassword', this.email]);
177177
} else { //success
178178
this.errorMessage = message;
179179
}

0 commit comments

Comments
 (0)