Login form: call the username username rather than email.

master
Tom Hacohen 2020-08-08 10:04:14 +03:00
parent a540514f87
commit 58533f165d
1 changed files with 2 additions and 2 deletions

View File

@ -143,11 +143,11 @@ class LoginForm extends React.PureComponent {
{(this.props.error) && (<div>Error! {this.props.error.message}</div>)}
<form style={styles.form} onSubmit={this.generateEncryption}>
<TextField
type={this.state.showAdvanced ? "text" : "email"}
type="text"
style={styles.textField}
error={!!this.state.errors.errorEmail}
helperText={this.state.errors.errorEmail}
label="Email"
label="Username"
name="username"
value={this.state.username}
onChange={this.handleInputChange}