This commit is contained in:
geek 2018-06-01 12:50:07 +09:00
parent 7d70d61205
commit f26e14bad3
2 changed files with 6 additions and 1 deletions

View File

@ -76,6 +76,10 @@ export class MemberModifyPasswordComponent implements OnInit {
modifyPasswordFormSubmit() { modifyPasswordFormSubmit() {
const formValue = Object.assign({}, this.modifyPasswordForm.value); const formValue = Object.assign({}, this.modifyPasswordForm.value);
// this.modifyPassword.emit({token: this.token, password: formValue.pw, confirmPassword: formValue.confirmPw}); // 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) this.memberService.resetPassword(this.token, formValue.password, formValue.pwConfirm)
.pipe( .pipe(
tap(() => { tap(() => {

View File

@ -24,7 +24,8 @@ export class ConfirmResetPasswordPageComponent implements OnInit {
} }
onModifyPassword() { onModifyPassword() {
this.router.navigate(['auth/modify-password']); console.log(this.token);
this.router.navigate(['auth/modify-password'], {queryParams: {token: this.token}});
} }
onSignin() { onSignin() {