Fix error message custom username validation

This commit is contained in:
mauriziovitale84 2016-09-07 16:52:09 +01:00
parent 2e24a68527
commit 6bdc0dd054

View File

@ -74,7 +74,7 @@ export class LoginDemoComponent {
validateForm(event: any) {
let values = event.values;
if (values.controls['username'].value === 'invalidUsername') {
this.alfrescologin.addCustomError('username', 'the username is in blacklist');
this.alfrescologin.addCustomError('username', 'This particular username has been blocked');
event.preventDefault();
}
}