mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
Fix error message custom username validation
This commit is contained in:
parent
2e24a68527
commit
6bdc0dd054
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user