diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-17 11:47:04 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-17 15:12:55 +0200 |
commit | 7ed1edbbe4ffbef28093e4f5630751cb652814e4 (patch) | |
tree | 831862165dbfce593447a517c2294a7a4c28d840 /client/src/app/+login | |
parent | 1a95f0b9627f8016767a5a386620cbc3335d5f93 (diff) | |
download | PeerTube-7ed1edbbe4ffbef28093e4f5630751cb652814e4.tar.gz PeerTube-7ed1edbbe4ffbef28093e4f5630751cb652814e4.tar.zst PeerTube-7ed1edbbe4ffbef28093e4f5630751cb652814e4.zip |
We don't need services anymore for validators
Diffstat (limited to 'client/src/app/+login')
-rw-r--r-- | client/src/app/+login/login.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts index e9336172e..351750453 100644 --- a/client/src/app/+login/login.component.ts +++ b/client/src/app/+login/login.component.ts | |||
@@ -3,7 +3,8 @@ import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angula | |||
3 | import { ActivatedRoute } from '@angular/router' | 3 | import { ActivatedRoute } from '@angular/router' |
4 | import { AuthService, Notifier, RedirectService, UserService } from '@app/core' | 4 | import { AuthService, Notifier, RedirectService, UserService } from '@app/core' |
5 | import { HooksService } from '@app/core/plugins/hooks.service' | 5 | import { HooksService } from '@app/core/plugins/hooks.service' |
6 | import { FormReactive, FormValidatorService, LoginValidatorsService } from '@app/shared/shared-forms' | 6 | import { LOGIN_PASSWORD_VALIDATOR, LOGIN_USERNAME_VALIDATOR } from '@app/shared/form-validators/login-validators' |
7 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | ||
7 | import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' | 8 | import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' |
8 | import { RegisteredExternalAuthConfig, ServerConfig } from '@shared/models' | 9 | import { RegisteredExternalAuthConfig, ServerConfig } from '@shared/models' |
9 | 10 | ||
@@ -31,7 +32,6 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
31 | protected formValidatorService: FormValidatorService, | 32 | protected formValidatorService: FormValidatorService, |
32 | private route: ActivatedRoute, | 33 | private route: ActivatedRoute, |
33 | private modalService: NgbModal, | 34 | private modalService: NgbModal, |
34 | private loginValidatorsService: LoginValidatorsService, | ||
35 | private authService: AuthService, | 35 | private authService: AuthService, |
36 | private userService: UserService, | 36 | private userService: UserService, |
37 | private redirectService: RedirectService, | 37 | private redirectService: RedirectService, |
@@ -65,8 +65,8 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
65 | } | 65 | } |
66 | 66 | ||
67 | this.buildForm({ | 67 | this.buildForm({ |
68 | username: this.loginValidatorsService.LOGIN_USERNAME, | 68 | username: LOGIN_USERNAME_VALIDATOR, |
69 | password: this.loginValidatorsService.LOGIN_PASSWORD | 69 | password: LOGIN_PASSWORD_VALIDATOR |
70 | }) | 70 | }) |
71 | } | 71 | } |
72 | 72 | ||