From b00b97d4115ac699fec88dd6173ae28c2df45e9c Mon Sep 17 00:00:00 2001 From: emelko <ml.kochsiek@mailbox.org> Date: Sun, 20 Dec 2020 12:59:41 +0100 Subject: [PATCH] Add secureTextEntry to password AppTextInput --- components/settings/common/confirm-with-password.js | 1 + components/settings/password/enter-new-password.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/components/settings/common/confirm-with-password.js b/components/settings/common/confirm-with-password.js index f96978a3..2b0b9705 100644 --- a/components/settings/common/confirm-with-password.js +++ b/components/settings/common/confirm-with-password.js @@ -70,6 +70,7 @@ export default class ConfirmWithPassword extends Component { onChangeText={this.handlePasswordInput} placeholder={labels.enterCurrent} value={password} + secureTextEntry={true} /> <View style={styles.container}> <Button onPress={this.props.onCancel}> diff --git a/components/settings/password/enter-new-password.js b/components/settings/password/enter-new-password.js index 5fc8d713..a3510994 100644 --- a/components/settings/password/enter-new-password.js +++ b/components/settings/password/enter-new-password.js @@ -69,12 +69,14 @@ export default class EnterNewPassword extends Component { placeholder={labels.enterNew} textContentType="password" value={password} + secureTextEntry={true} /> <AppTextInput onChangeText={this.handleConfirmationInput} placeholder={labels.confirmPassword} textContentType="password" value={passwordConfirmation} + secureTextEntry={true} /> {shouldShowErrorMessage && <AppText style={styles.error}>{labels.passwordsDontMatch}</AppText> -- GitLab