mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Fix error message custom username validation
This commit is contained in:
@@ -74,7 +74,7 @@ export class LoginDemoComponent {
|
|||||||
validateForm(event: any) {
|
validateForm(event: any) {
|
||||||
let values = event.values;
|
let values = event.values;
|
||||||
if (values.controls['username'].value === 'invalidUsername') {
|
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();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user