aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/userlogin-form/userlogin-form.component.ts
diff options
context:
space:
mode:
authorPatrick Brady <patrick.brady@att.com>2019-03-06 12:11:34 -0800
committerPatrick Brady <patrick.brady@att.com>2019-03-06 12:12:36 -0800
commiteedac3e312c66499ca5ff9d72388c31b25813225 (patch)
tree4cc2f22a0a36ba97823b70fe27ed667383173f0a /src/app/vnfs/userlogin-form/userlogin-form.component.ts
parent611c9da62c2e266f9facd97dc9f340ce311060a3 (diff)
Revert "multiple asible servers support"
Some functionality was accidentally removed This reverts commit 611c9da62c2e266f9facd97dc9f340ce311060a3. Change-Id: I1aefbbc0ede8cdda59acc8bdf7b047e506aad813 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1510
Diffstat (limited to 'src/app/vnfs/userlogin-form/userlogin-form.component.ts')
-rw-r--r--src/app/vnfs/userlogin-form/userlogin-form.component.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/app/vnfs/userlogin-form/userlogin-form.component.ts b/src/app/vnfs/userlogin-form/userlogin-form.component.ts
index c62e9bb..188fe81 100644
--- a/src/app/vnfs/userlogin-form/userlogin-form.component.ts
+++ b/src/app/vnfs/userlogin-form/userlogin-form.component.ts
@@ -31,8 +31,6 @@ export class userloginFormComponent implements OnInit {
userId: string = '';
returnUrl:string
- invalid = true;
- errorMessage = '';
constructor(private router: Router, private utiltiy: UtilityService, private route: ActivatedRoute
) {
@@ -52,23 +50,4 @@ export class userloginFormComponent implements OnInit {
this.router.navigateByUrl(this.returnUrl);
}
- validateUserName(){
- if (!this.userId.trim() || this.userId.length < 1) {
- this.errorMessage = '';
- this.invalid = true;
- }else if(this.userId.startsWith(' ') || this.userId.endsWith(' ')){
- this.errorMessage = 'Leading and trailing space is not allowed';
- this.invalid = true;
- } else if(this.userId.includes(' ')){
- this.errorMessage = 'More than one space is not allowed in username';
- this.invalid = true;
- } else if(this.userId.length > 50) {
- this.errorMessage = 'Username should be of minimum one character and maximum 50 character';
- this.invalid = true;
- }else {
- this.invalid = false;
- this.errorMessage = '';
- }
- }
-
}