From 19f66fdb64f59fe7047f71f88cb6526e87e55d92 Mon Sep 17 00:00:00 2001 From: mauriziovitale84 Date: Wed, 7 Sep 2016 12:12:54 +0100 Subject: [PATCH] Fix documentation --- ng2-components/ng2-alfresco-login/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } }