Skip to content
Snippets Groups Projects
Commit 1ffd5c8b authored by Julia Friesel's avatar Julia Friesel
Browse files

Disallow empty passwords

parent 9efd3668
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@ export default class PasswordPrompt extends Component {
onPress={() => {
requestHash(this.state.password)
}}
disabled={!this.state.password}
>
<AppText style={styles.passwordPromptButtonText}>
{labels.title}
......
......@@ -80,6 +80,7 @@ export default class PasswordSetting extends Component {
requestHash(this.state.changedPassword)
}
}}
disabled={this.state.changingPassword && !this.state.changedPassword}
style={styles.settingsButton}>
<AppText style={styles.settingsButtonText}>
{labels.passwordSettings.changePassword}
......@@ -123,6 +124,7 @@ export default class PasswordSetting extends Component {
requestHash(this.state.newPassword)
}
}}
disabled={this.state.enteringNewPassword && !this.state.newPassword}
style={styles.settingsButton}>
<AppText style={styles.settingsButtonText}>
{labels.passwordSettings.setPassword}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment