trim all username state input

This commit is contained in:
Alec Armbruster 2023-06-14 09:47:33 -04:00
parent 2b1af707c3
commit 520efdcada
No known key found for this signature in database
GPG key ID: 0BE3206ADE0F3B3B
3 changed files with 3 additions and 3 deletions

View file

@ -195,7 +195,7 @@ export class Login extends Component<any, State> {
} }
handleLoginUsernameChange(i: Login, event: any) { handleLoginUsernameChange(i: Login, event: any) {
i.state.form.username_or_email = event.target.value; i.state.form.username_or_email = event.target.value.trim();
i.setState(i.state); i.setState(i.state);
} }

View file

@ -221,7 +221,7 @@ export class Setup extends Component<any, State> {
} }
handleRegisterUsernameChange(i: Setup, event: any) { handleRegisterUsernameChange(i: Setup, event: any) {
i.state.form.username = event.target.value; i.state.form.username = event.target.value.trim();
i.setState(i.state); i.setState(i.state);
} }

View file

@ -496,7 +496,7 @@ export class Signup extends Component<any, State> {
} }
handleRegisterUsernameChange(i: Signup, event: any) { handleRegisterUsernameChange(i: Signup, event: any) {
i.state.form.username = event.target.value; i.state.form.username = event.target.value.trim();
i.setState(i.state); i.setState(i.state);
} }