From 01a1fa4385f028fbfa787a336defe1dbd83d7af7 Mon Sep 17 00:00:00 2001
From: Julia Friesel <julia.friesel@gmail.com>
Date: Fri, 14 Sep 2018 12:19:22 +0200
Subject: [PATCH] Mask password input

---
 components/labels.js                    | 3 ++-
 components/password-prompt.js           | 2 ++
 components/settings/password-setting.js | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/components/labels.js b/components/labels.js
index 5f405fc1..8c5d427b 100644
--- a/components/labels.js
+++ b/components/labels.js
@@ -106,5 +106,6 @@ export const bleedingPrediction = {
 }
 
 export const passwordPrompt = {
-  title: 'Log in'
+  title: 'Log in',
+  enterPassword: 'Enter password here'
 }
\ No newline at end of file
diff --git a/components/password-prompt.js b/components/password-prompt.js
index dd434890..85bed6bf 100644
--- a/components/password-prompt.js
+++ b/components/password-prompt.js
@@ -61,6 +61,8 @@ export default class PasswordPrompt extends Component {
             <TextInput
               onChangeText={val => this.setState({ password: val })}
               style={styles.passwordField}
+              secureTextEntry={true}
+              placeholder={passwordPrompt.enterPassword}
             />
             <TouchableOpacity
               style={styles.settingsButton}
diff --git a/components/settings/password-setting.js b/components/settings/password-setting.js
index 56859ac1..9a9ff3db 100644
--- a/components/settings/password-setting.js
+++ b/components/settings/password-setting.js
@@ -85,6 +85,7 @@ export default class PasswordSetting extends Component {
               }}
               value={this.state.currentPassword}
               placeholder={labels.passwordSettings.enterCurrent}
+              secureTextEntry={true}
             />
           </View>
         }
-- 
GitLab