diff --git a/ng2-components/ng2-alfresco-login/README.md b/ng2-components/ng2-alfresco-login/README.md index 1cf3a5b775..6ca7fb2dc3 100644 --- a/ng2-components/ng2-alfresco-login/README.md +++ b/ng2-components/ng2-alfresco-login/README.md @@ -204,7 +204,8 @@ export class MyCustomLogin { // check if the username is in the blacklist if (values.controls['username'].value === 'invalidUsername') { - this.alfrescologin.addCustomError('username', 'the username is in blacklist'); + this.alfrescologin.addCustomFormError('username', 'the + username is in blacklist'); event.preventDefault(); } }