diff --git a/src/components/structures/auth/ForgotPassword.tsx b/src/components/structures/auth/ForgotPassword.tsx index 58b0073c44..911ee5d1b9 100644 --- a/src/components/structures/auth/ForgotPassword.tsx +++ b/src/components/structures/auth/ForgotPassword.tsx @@ -222,8 +222,10 @@ export default class ForgotPassword extends React.Component { } private onInputChanged = (stateKey: string, ev: React.FormEvent) => { + let value = ev.currentTarget.value; + if (stateKey === "email") value = value.trim(); this.setState({ - [stateKey]: ev.currentTarget.value, + [stateKey]: value, } as any); };