Skip to content

Commit

Permalink
Force usernames to be lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Apr 1, 2024
1 parent 6094cc8 commit be66286
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/auth/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export class LoginComponent {
this.loading = true;
this.passwordHidden = true;

// Force the username to be lowercase :)
this.loginData.username = this.loginData.username.toLowerCase();

this.authService.performLogin(this.loginData).subscribe({
next: (response) => {
this.loading = false;
Expand Down

0 comments on commit be66286

Please sign in to comment.