diff options
Diffstat (limited to 'client/src/app/+reset-password')
-rw-r--r-- | client/src/app/+reset-password/reset-password-routing.module.ts | 2 | ||||
-rw-r--r-- | client/src/app/+reset-password/reset-password.component.ts | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/+reset-password/reset-password-routing.module.ts b/client/src/app/+reset-password/reset-password-routing.module.ts index 31bc08709..7f1ba2f68 100644 --- a/client/src/app/+reset-password/reset-password-routing.module.ts +++ b/client/src/app/+reset-password/reset-password-routing.module.ts | |||
@@ -10,7 +10,7 @@ const resetPasswordRoutes: Routes = [ | |||
10 | canActivate: [ MetaGuard ], | 10 | canActivate: [ MetaGuard ], |
11 | data: { | 11 | data: { |
12 | meta: { | 12 | meta: { |
13 | title: 'Reset password' | 13 | title: `Reset password` |
14 | } | 14 | } |
15 | } | 15 | } |
16 | } | 16 | } |
diff --git a/client/src/app/+reset-password/reset-password.component.ts b/client/src/app/+reset-password/reset-password.component.ts index 16e4f4090..ce9144170 100644 --- a/client/src/app/+reset-password/reset-password.component.ts +++ b/client/src/app/+reset-password/reset-password.component.ts | |||
@@ -1,7 +1,9 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { Notifier, UserService } from '@app/core' | 3 | import { Notifier, UserService } from '@app/core' |
4 | import { FormReactive, FormValidatorService, ResetPasswordValidatorsService, UserValidatorsService } from '@app/shared/shared-forms' | 4 | import { RESET_PASSWORD_CONFIRM_VALIDATOR } from '@app/shared/form-validators/reset-password-validators' |
5 | import { USER_PASSWORD_VALIDATOR } from '@app/shared/form-validators/user-validators' | ||
6 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | ||
5 | 7 | ||
6 | @Component({ | 8 | @Component({ |
7 | selector: 'my-login', | 9 | selector: 'my-login', |
@@ -15,8 +17,6 @@ export class ResetPasswordComponent extends FormReactive implements OnInit { | |||
15 | 17 | ||
16 | constructor ( | 18 | constructor ( |
17 | protected formValidatorService: FormValidatorService, | 19 | protected formValidatorService: FormValidatorService, |
18 | private resetPasswordValidatorsService: ResetPasswordValidatorsService, | ||
19 | private userValidatorsService: UserValidatorsService, | ||
20 | private userService: UserService, | 20 | private userService: UserService, |
21 | private notifier: Notifier, | 21 | private notifier: Notifier, |
22 | private router: Router, | 22 | private router: Router, |
@@ -27,8 +27,8 @@ export class ResetPasswordComponent extends FormReactive implements OnInit { | |||
27 | 27 | ||
28 | ngOnInit () { | 28 | ngOnInit () { |
29 | this.buildForm({ | 29 | this.buildForm({ |
30 | password: this.userValidatorsService.USER_PASSWORD, | 30 | password: USER_PASSWORD_VALIDATOR, |
31 | 'password-confirm': this.resetPasswordValidatorsService.RESET_PASSWORD_CONFIRM | 31 | 'password-confirm': RESET_PASSWORD_CONFIRM_VALIDATOR |
32 | }) | 32 | }) |
33 | 33 | ||
34 | this.userId = this.route.snapshot.queryParams['userId'] | 34 | this.userId = this.route.snapshot.queryParams['userId'] |