File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
* Web password field needs `current-password` as autocomplete type which is not supported on native
3
3
*/
4
4
const PASSWORD_AUTOCOMPLETE_TYPE = 'current-password' ;
5
+ const NEW_PASSWORD_AUTOCOMPLETE_TYPE = 'new-password' ;
5
6
const ACCESSIBILITY_ROLE_FORM = 'form' ;
6
7
7
8
export {
8
9
PASSWORD_AUTOCOMPLETE_TYPE ,
9
10
ACCESSIBILITY_ROLE_FORM ,
11
+ NEW_PASSWORD_AUTOCOMPLETE_TYPE ,
10
12
} ;
Original file line number Diff line number Diff line change 1
1
const PASSWORD_AUTOCOMPLETE_TYPE = 'password' ;
2
+ const NEW_PASSWORD_AUTOCOMPLETE_TYPE = 'password-new' ;
2
3
const ACCESSIBILITY_ROLE_FORM = 'none' ;
3
4
4
5
export {
5
6
PASSWORD_AUTOCOMPLETE_TYPE ,
6
7
ACCESSIBILITY_ROLE_FORM ,
8
+ NEW_PASSWORD_AUTOCOMPLETE_TYPE ,
7
9
} ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import withLocalize, {
8
8
import CONST from '../../CONST' ;
9
9
import styles from '../../styles/styles' ;
10
10
import TextInput from '../../components/TextInput' ;
11
+ import * as ComponentUtils from '../../libs/ComponentUtils' ;
11
12
12
13
const propTypes = {
13
14
/** String to control the first password box in the form */
@@ -71,8 +72,8 @@ class NewPasswordForm extends React.Component {
71
72
< TextInput
72
73
label = { `${ this . props . translate ( 'setPasswordPage.enterPassword' ) } ` }
73
74
secureTextEntry
74
- autoCompleteType = "password"
75
- textContentType = "password "
75
+ autoComplete = { ComponentUtils . NEW_PASSWORD_AUTOCOMPLETE_TYPE }
76
+ textContentType = "newPassword "
76
77
value = { this . props . password }
77
78
onChangeText = { password => this . props . updatePassword ( password ) }
78
79
onBlur = { ( ) => this . onBlurNewPassword ( ) }
You can’t perform that action at this time.
0 commit comments