|
|
@ -22,7 +22,7 @@ import { PageComponent } from '@shared/components/page.component'; |
|
|
import { UntypedFormBuilder } from '@angular/forms'; |
|
|
import { UntypedFormBuilder } from '@angular/forms'; |
|
|
import { ActionNotificationShow } from '@core/notification/notification.actions'; |
|
|
import { ActionNotificationShow } from '@core/notification/notification.actions'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
import { ActivatedRoute } from '@angular/router'; |
|
|
import { ActivatedRoute, Router } from '@angular/router'; |
|
|
import { Subscription } from 'rxjs'; |
|
|
import { Subscription } from 'rxjs'; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
@ -44,6 +44,7 @@ export class ResetPasswordComponent extends PageComponent implements OnInit, OnD |
|
|
|
|
|
|
|
|
constructor(protected store: Store<AppState>, |
|
|
constructor(protected store: Store<AppState>, |
|
|
private route: ActivatedRoute, |
|
|
private route: ActivatedRoute, |
|
|
|
|
|
private router: Router, |
|
|
private authService: AuthService, |
|
|
private authService: AuthService, |
|
|
private translate: TranslateService, |
|
|
private translate: TranslateService, |
|
|
public fb: UntypedFormBuilder) { |
|
|
public fb: UntypedFormBuilder) { |
|
|
@ -71,7 +72,9 @@ export class ResetPasswordComponent extends PageComponent implements OnInit, OnD |
|
|
} else { |
|
|
} else { |
|
|
this.authService.resetPassword( |
|
|
this.authService.resetPassword( |
|
|
this.resetToken, |
|
|
this.resetToken, |
|
|
this.resetPassword.get('newPassword').value).subscribe(); |
|
|
this.resetPassword.get('newPassword').value).subscribe( |
|
|
|
|
|
() => this.router.navigateByUrl('login') |
|
|
|
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|