From 48ed440dcf4238c3a7a5211374f75c8e7134066d Mon Sep 17 00:00:00 2001 From: Will Abson Date: Wed, 21 Sep 2016 09:16:52 +0100 Subject: [PATCH] Remove maximum username length validation (Text was also mis-leading stating 11 chars not 15) Refs #781 --- demo-shell-ng2/app/components/login/login-demo.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demo-shell-ng2/app/components/login/login-demo.component.ts b/demo-shell-ng2/app/components/login/login-demo.component.ts index 693bcbcb1b..df469bc442 100644 --- a/demo-shell-ng2/app/components/login/login-demo.component.ts +++ b/demo-shell-ng2/app/components/login/login-demo.component.ts @@ -41,7 +41,7 @@ export class LoginDemoComponent implements OnInit { constructor(public router: Router) { this.customValidation = { - username: ['', Validators.compose([Validators.required, Validators.minLength(4), Validators.maxLength(15)])], + username: ['', Validators.compose([Validators.required, Validators.minLength(4)])], password: ['', Validators.required] }; } @@ -49,7 +49,6 @@ export class LoginDemoComponent implements OnInit { ngOnInit() { this.alfrescologin.addCustomValidationError('username', 'required', 'LOGIN.MESSAGES.USERNAME-REQUIRED'); this.alfrescologin.addCustomValidationError('username', 'minlength', 'LOGIN.MESSAGES.USERNAME-MIN'); - this.alfrescologin.addCustomValidationError('username', 'maxlength', 'Username must not be longer than 11 characters.'); this.alfrescologin.addCustomValidationError('password', 'required', 'LOGIN.MESSAGES.PASSWORD-REQUIRED'); }