Просмотр исходного кода

using default password to save a few clicks

tags/2.037
Patrick Sun 5 лет назад
Родитель
Сommit
a2a66d525c
2 измененных файлов: 2 добавлений и 2 удалений
  1. +1
    -1
      src/app/auth/auth.component.ts
  2. +1
    -1
      src/app/auth/dist/auth.component.js

+ 1
- 1
src/app/auth/auth.component.ts Просмотреть файл

loginSub: Subscription; loginSub: Subscription;


public userForm: FormGroup = new FormGroup({ public userForm: FormGroup = new FormGroup({
password: new FormControl('abcdefg', [Validators.minLength(3), Validators.maxLength(20)]),
password: new FormControl('password', [Validators.minLength(3), Validators.maxLength(20)]),
email: new FormControl('email@email.com', Validators.email) email: new FormControl('email@email.com', Validators.email)
}); });



+ 1
- 1
src/app/auth/dist/auth.component.js Просмотреть файл

this.rounter = rounter; this.rounter = rounter;
this.notificationService = notificationService; this.notificationService = notificationService;
this.userForm = new forms_1.FormGroup({ this.userForm = new forms_1.FormGroup({
password: new forms_1.FormControl('abcdefg', [forms_1.Validators.minLength(3), forms_1.Validators.maxLength(20)]),
password: new forms_1.FormControl('password', [forms_1.Validators.minLength(3), forms_1.Validators.maxLength(20)]),
email: new forms_1.FormControl('email@email.com', forms_1.Validators.email) email: new forms_1.FormControl('email@email.com', forms_1.Validators.email)
}); });
} }

Загрузка…
Отмена
Сохранить