diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 0ba5610..b9edb26 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -78,7 +78,7 @@ export class LoginComponent implements OnInit, OnDestroy, AfterViewInit { }, }; - this.authService.login(this.username, this.password).subscribe(observer); + this.authService.login(this.username.trim, this.password).subscribe(observer); } ngAfterViewInit() {