Skip to content

Commit

Permalink
auth: remove trailing space in email on login forms
Browse files Browse the repository at this point in the history
Fixes #720
  • Loading branch information
davidmurray committed Sep 21, 2023
1 parent 4dffddf commit a6b443e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class LoginPage extends React.Component<LoginPageProps & WithTranslation,
};

onEmailChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const email = e.target.value;
const email = e.target.value.replace(' ', ''); // E-mail adresses cannot have spaces
this.setState(() => ({ email }));
};

Expand Down

0 comments on commit a6b443e

Please sign in to comment.