Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove password requirement for setting up withdrawal account #5545

Merged
merged 3 commits into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ function BankAccount_SetupWithdrawal(parameters) {

requireParameters(['currentStep'], parameters, commandName);
return Network.post(
commandName, {additionalData: JSON.stringify(additionalData), password: parameters.password},
commandName, {additionalData: JSON.stringify(additionalData)},
CONST.NETWORK.METHOD.POST,
true,
);
Expand Down
20 changes: 0 additions & 20 deletions src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class CompanyStep extends React.Component {
incorporationDate: ReimbursementAccountUtils.getDefaultStateForField(props, 'incorporationDate'),
incorporationState: ReimbursementAccountUtils.getDefaultStateForField(props, 'incorporationState'),
hasNoConnectionToCannabis: ReimbursementAccountUtils.getDefaultStateForField(props, 'hasNoConnectionToCannabis', false),
password: '',
};

// These fields need to be filled out in order to submit the form
Expand All @@ -73,7 +72,6 @@ class CompanyStep extends React.Component {
'incorporationDate',
'incorporationState',
'incorporationType',
'password',
'companyPhone',
'hasNoConnectionToCannabis',
];
Expand All @@ -89,7 +87,6 @@ class CompanyStep extends React.Component {
companyTaxID: 'bankAccount.error.taxID',
incorporationDate: 'bankAccount.error.incorporationDate',
incorporationType: 'bankAccount.error.companyType',
password: 'common.passwordCannotBeBlank',
Jag96 marked this conversation as resolved.
Show resolved Hide resolved
hasNoConnectionToCannabis: 'bankAccount.error.restrictedBusiness',
};

Expand Down Expand Up @@ -274,23 +271,6 @@ class CompanyStep extends React.Component {
/>
</View>
</View>
<ExpensiTextInput
label={`Expensify ${this.props.translate('common.password')}`}
containerStyles={[styles.mt4]}
secureTextEntry
textContentType="password"
onChangeText={(value) => {
this.setState({password: value});
this.clearError('password');
}}
value={this.state.password}
onSubmitEditing={this.submit}
errorText={this.getErrorText('password')}

// Use new-password to prevent an autoComplete bug https://github.com/Expensify/Expensify/issues/173177
// eslint-disable-next-line react/jsx-props-no-multi-spaces
autoCompleteType="new-password"
/>
<CheckboxWithLabel
isChecked={this.state.hasNoConnectionToCannabis}
onPress={() => {
Expand Down