Skip to content

Commit

Permalink
frontend/login: change type of inputs for emails to 'email'
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreddow committed Sep 23, 2024
1 parent bf43552 commit ae4adf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class Login extends Component<{}, LoginState> {
<Modal.Body>
<Form.Group className="mb-3" controlId="startRecoveryEmail">
<Form.Label>{t("email")}</Form.Label>
<Form.Control type="text" placeholder={t("email")} value={this.state.email} onChange={(e) => {
<Form.Control type="email" placeholder={t("email")} value={this.state.email} onChange={(e) => {
this.setState({email: (e.target as HTMLInputElement).value});
}} />
</Form.Group>
Expand All @@ -141,7 +141,7 @@ export class Login extends Component<{}, LoginState> {
<Form onSubmit={async (e: SubmitEvent) => this.onSubmit(e)}>
<Form.Group className="mb-3" controlId="loginEmail">
<Form.Label>{t("email")}</Form.Label>
<Form.Control type="text" placeholder={t("email")} value={this.state.email} onChange={(e) => {
<Form.Control type="email" placeholder={t("email")} value={this.state.email} onChange={(e) => {
this.setState({email: (e.target as HTMLInputElement).value});
}} />
</Form.Group>
Expand Down

0 comments on commit ae4adf9

Please sign in to comment.