From f26e14bad37e9b4236df2f5e5f32fdfd8f194761 Mon Sep 17 00:00:00 2001 From: geek Date: Fri, 1 Jun 2018 12:50:07 +0900 Subject: [PATCH] ing --- .../member/component/member-modify-password.component.ts | 4 ++++ .../auth/confirm/confirm-reset-password-page.component.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/@overflow/member/component/member-modify-password.component.ts b/@overflow/member/component/member-modify-password.component.ts index 4f4db66..171dca7 100644 --- a/@overflow/member/component/member-modify-password.component.ts +++ b/@overflow/member/component/member-modify-password.component.ts @@ -76,6 +76,10 @@ export class MemberModifyPasswordComponent implements OnInit { modifyPasswordFormSubmit() { const formValue = Object.assign({}, this.modifyPasswordForm.value); // this.modifyPassword.emit({token: this.token, password: formValue.pw, confirmPassword: formValue.confirmPw}); + + console.log(this.token); + console.log(formValue.password); + console.log(formValue.pwConfirm); this.memberService.resetPassword(this.token, formValue.password, formValue.pwConfirm) .pipe( tap(() => { diff --git a/src/app/pages/auth/confirm/confirm-reset-password-page.component.ts b/src/app/pages/auth/confirm/confirm-reset-password-page.component.ts index 852fab4..3ada2a0 100644 --- a/src/app/pages/auth/confirm/confirm-reset-password-page.component.ts +++ b/src/app/pages/auth/confirm/confirm-reset-password-page.component.ts @@ -24,7 +24,8 @@ export class ConfirmResetPasswordPageComponent implements OnInit { } onModifyPassword() { - this.router.navigate(['auth/modify-password']); + console.log(this.token); + this.router.navigate(['auth/modify-password'], {queryParams: {token: this.token}}); } onSignin() {