Skip to content

Commit

Permalink
Update password recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstotsky committed Apr 7, 2022
1 parent 77e33c8 commit dd5011d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Auth/PasswordRecovery/PasswordRecovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class PasswordRecovery extends PureComponent {
password: '',
passwordRepeat: '',
isBeingValidated: false,
isPasswordProtected: false,
isPasswordProtected: config.hostedFrameworkMode,
isPersisted,
passwordError: '',
passwordRepeatError: '',
Expand Down Expand Up @@ -145,10 +145,10 @@ class PasswordRecovery extends PureComponent {
} = this.state

const icon = config.showFrameworkMode ? <Icon.SIGN_UP /> : <Icon.SIGN_IN />
const showPasswordProtection = config.showFrameworkMode && !config.hostedFrameworkMode
const isPasswordRecoveryDisabled = !apiKey || !apiSecret
|| (config.showFrameworkMode && isPasswordProtected
&& (!password || !passwordRepeat || passwordError || passwordRepeatError))

const classes = classNames('bitfinex-auth', 'bitfinex-auth-sign-up', {
'bitfinex-auth-sign-up--framework': config.showFrameworkMode,
})
Expand Down Expand Up @@ -202,7 +202,7 @@ class PasswordRecovery extends PureComponent {
>
{t('auth.rememberMe')}
</Checkbox>
{config.showFrameworkMode && (
{showPasswordProtection && (
<Checkbox
className='bitfinex-auth-remember-me'
name='isPasswordProtected'
Expand Down

0 comments on commit dd5011d

Please sign in to comment.