This commit is contained in:
geek 2018-06-05 16:26:51 +09:00
parent 5077020864
commit 12070776ab
2 changed files with 15 additions and 8 deletions

View File

@ -39,15 +39,21 @@
formControlName="email"
required
/>
<div *ngIf="email.touched && !email.valid" class="ui-message ui-messages-error ui-corner-all">
Invalid email
<div
*ngIf="signupForm.get('email').hasError('required')"
class="ui-message ui-messages-error ui-corner-all">
Please provide email
</div>
<div *ngIf="signupForm.get('email').hasError('email')"
class="ui-message ui-messages-error ui-corner-all">
Please provide valid email
</div>
</span>
</div>
<div class="ui-g-12 ui-nopad font-s">
* 비밀번호는 8자 이상 이어야 하며,<br>
특수문자, 영문 대·소문자, 숫자를 포함해야 합니다.
</div>
<!--<div class="ui-g-12 ui-nopad font-s">-->
<!--* 비밀번호는 8자 이상 이어야 하며,<br>-->
<!--특수문자, 영문 대·소문자, 숫자를 포함해야 합니다.-->
<!--</div>-->
<div class="ui-g-12 ui-g-padding-15">
<span class="md-inputfield">
<input type="password"
@ -58,7 +64,7 @@
formControlName="password"
required>
<div *ngIf="password.touched && !password.valid" class="ui-message ui-messages-error ui-corner-all">
Invalid password
* Minimum 8-characters long, with at least one $pecial character 1 number and 1 lowercase letter.
</div>
</span>
</div>

View File

@ -79,7 +79,8 @@ export class MemberSignupComponent implements OnInit, OnDestroy {
'name': [
'Park',
[
Validators.required
Validators.required,
Validators.pattern('^[a-zA-Z 가-힣]{2,30}$')
]
],
'phone': [