aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/signup
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/signup')
-rw-r--r--client/src/app/signup/signup.component.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts
index 682e592c7..a40f42cb1 100644
--- a/client/src/app/signup/signup.component.ts
+++ b/client/src/app/signup/signup.component.ts
@@ -1,10 +1,9 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { Router } from '@angular/router' 2import { Router } from '@angular/router'
3import { ServerService } from '@app/core/server' 3import { ServerService } from '@app/core/server'
4
5import { NotificationsService } from 'angular2-notifications' 4import { NotificationsService } from 'angular2-notifications'
6import { UserCreate } from '../../../../shared' 5import { UserCreate } from '../../../../shared'
7import { FormReactive, USER_EMAIL, USER_PASSWORD, USER_USERNAME, UserService } from '../shared' 6import { FormReactive, UserService, UserValidatorsService } from '../shared'
8import { RedirectService } from '@app/core' 7import { RedirectService } from '@app/core'
9import { I18n } from '@ngx-translate/i18n-polyfill' 8import { I18n } from '@ngx-translate/i18n-polyfill'
10import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' 9import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
@@ -32,6 +31,7 @@ export class SignupComponent extends FormReactive implements OnInit {
32 31
33 constructor ( 32 constructor (
34 protected formValidatorService: FormValidatorService, 33 protected formValidatorService: FormValidatorService,
34 private userValidatorsService: UserValidatorsService,
35 private router: Router, 35 private router: Router,
36 private notificationsService: NotificationsService, 36 private notificationsService: NotificationsService,
37 private userService: UserService, 37 private userService: UserService,
@@ -48,9 +48,9 @@ export class SignupComponent extends FormReactive implements OnInit {
48 48
49 ngOnInit () { 49 ngOnInit () {
50 this.buildForm({ 50 this.buildForm({
51 username: USER_USERNAME, 51 username: this.userValidatorsService.USER_USERNAME,
52 password: USER_PASSWORD, 52 password: this.userValidatorsService.USER_PASSWORD,
53 email: USER_EMAIL 53 email: this.userValidatorsService.USER_EMAIL
54 }) 54 })
55 55
56 this.serverService.configLoaded 56 this.serverService.configLoaded