Changed client end validator for email
This commit is contained in:
parent
845b166364
commit
7620b1429a
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,7 @@ export class RegisterComponent {
|
||||||
this.signupForm = new ValidationManager({
|
this.signupForm = new ValidationManager({
|
||||||
token: 'required',
|
token: 'required',
|
||||||
usertype: 'required',
|
usertype: 'required',
|
||||||
email: 'required',
|
email: 'required|email',
|
||||||
password: 'required',
|
password: 'required',
|
||||||
confirmpassword: 'required|equalTo:password'
|
confirmpassword: 'required|equalTo:password'
|
||||||
});
|
});
|
||||||
|
@ -114,6 +114,7 @@ export class RegisterComponent {
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log( error._body );
|
console.log( error._body );
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue