Force lowercase on login and install
This commit is contained in:
parent
3568c06cd6
commit
2863f4d6c0
2 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ class InstallScreen extends React.Component {
|
|||
<TextInput
|
||||
style={commonStyles.textInput}
|
||||
placeholder={i18n.t("install.enter_url")}
|
||||
onChangeText={(newText) => this.setState({ url: newText })}
|
||||
onChangeText={(newText) => this.setState({ url: newText.toLowerCase() })}
|
||||
value={this.state.url}
|
||||
/>
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class LoginScreen extends React.Component {
|
|||
style={styles.text}
|
||||
placeholder={i18n.t('login_s.username')}
|
||||
value={this.state.login}
|
||||
onChangeText={text => this.setState({ login: text })}
|
||||
onChangeText={text => this.setState({ login: text.toLowerCase() })}
|
||||
autoCapitalize={'none'}
|
||||
autoCorrect={false}
|
||||
keyboardType={'email-address'}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue