Disallow empty passwords
This commit is contained in:
@@ -102,6 +102,7 @@ export default class PasswordPrompt extends Component {
|
|||||||
onPress={() => {
|
onPress={() => {
|
||||||
requestHash(this.state.password)
|
requestHash(this.state.password)
|
||||||
}}
|
}}
|
||||||
|
disabled={!this.state.password}
|
||||||
>
|
>
|
||||||
<AppText style={styles.passwordPromptButtonText}>
|
<AppText style={styles.passwordPromptButtonText}>
|
||||||
{labels.title}
|
{labels.title}
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ export default class PasswordSetting extends Component {
|
|||||||
requestHash(this.state.changedPassword)
|
requestHash(this.state.changedPassword)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
disabled={this.state.changingPassword && !this.state.changedPassword}
|
||||||
style={styles.settingsButton}>
|
style={styles.settingsButton}>
|
||||||
<AppText style={styles.settingsButtonText}>
|
<AppText style={styles.settingsButtonText}>
|
||||||
{labels.passwordSettings.changePassword}
|
{labels.passwordSettings.changePassword}
|
||||||
@@ -123,6 +124,7 @@ export default class PasswordSetting extends Component {
|
|||||||
requestHash(this.state.newPassword)
|
requestHash(this.state.newPassword)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
disabled={this.state.enteringNewPassword && !this.state.newPassword}
|
||||||
style={styles.settingsButton}>
|
style={styles.settingsButton}>
|
||||||
<AppText style={styles.settingsButtonText}>
|
<AppText style={styles.settingsButtonText}>
|
||||||
{labels.passwordSettings.setPassword}
|
{labels.passwordSettings.setPassword}
|
||||||
|
|||||||
Reference in New Issue
Block a user