diff --git a/src/languages/en.js b/src/languages/en.js index f7e67742ca69..2461e6568e13 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -58,7 +58,6 @@ export default { isRequiredField: 'is a required field', whatThis: 'What\'s this?', iAcceptThe: 'I accept the ', - passwordCannotBeBlank: 'Password cannot be blank', remove: 'Remove', admin: 'Admin', dateFormat: 'YYYY-MM-DD', diff --git a/src/languages/es.js b/src/languages/es.js index d72e89eaa802..521a5018db40 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -58,7 +58,6 @@ export default { isRequiredField: 'es un campo obligatorio', whatThis: '¿Qué es esto?', iAcceptThe: 'Acepto los ', - passwordCannotBeBlank: 'La contraseña no puede estar vacía', remove: 'Eliminar', admin: 'Administrador', dateFormat: 'AAAA-MM-DD', diff --git a/src/libs/API.js b/src/libs/API.js index 9e397c39c4b1..ce785386b348 100644 --- a/src/libs/API.js +++ b/src/libs/API.js @@ -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, ); diff --git a/src/pages/ReimbursementAccount/CompanyStep.js b/src/pages/ReimbursementAccount/CompanyStep.js index 6dd863e9ac57..2662fe4c9e6a 100644 --- a/src/pages/ReimbursementAccount/CompanyStep.js +++ b/src/pages/ReimbursementAccount/CompanyStep.js @@ -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 @@ -73,7 +72,6 @@ class CompanyStep extends React.Component { 'incorporationDate', 'incorporationState', 'incorporationType', - 'password', 'companyPhone', 'hasNoConnectionToCannabis', ]; @@ -89,7 +87,6 @@ class CompanyStep extends React.Component { companyTaxID: 'bankAccount.error.taxID', incorporationDate: 'bankAccount.error.incorporationDate', incorporationType: 'bankAccount.error.companyType', - password: 'common.passwordCannotBeBlank', hasNoConnectionToCannabis: 'bankAccount.error.restrictedBusiness', }; @@ -274,23 +271,6 @@ class CompanyStep extends React.Component { /> - { - 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" - /> {