Allow non-email usernames when using own server

Fixes #19

Co-authored-by: Nemanja Nedeljković <nemanjan00@gmail.com>
master
Tom Hacohen 2019-01-04 21:13:27 +00:00
parent 3c06fe00be
commit 7d5bbd5742
1 changed files with 2 additions and 2 deletions

View File

@ -139,11 +139,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="email"
type={this.state.showAdvanced ? 'text' : 'email'}
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}