Fix: Whitespaces around the password/username were causing login failures.

This commit is contained in:
2021-06-30 07:12:53 +05:30
parent 0d41c0e345
commit 1287d8f7ac
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
const { username } = formModel;
const { password } = formModel;
this.auth
.login(username, password)
.login(username.trim(), password.trim())
// .pipe(first())
.subscribe(
() => {