From dd5011d747d370bf71325dd8bfd7309f78c0ead6 Mon Sep 17 00:00:00 2001 From: alexstotsky Date: Thu, 7 Apr 2022 14:49:12 +0300 Subject: [PATCH] Update password recovery --- src/components/Auth/PasswordRecovery/PasswordRecovery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Auth/PasswordRecovery/PasswordRecovery.js b/src/components/Auth/PasswordRecovery/PasswordRecovery.js index 90d1faf62..05bcf0e60 100644 --- a/src/components/Auth/PasswordRecovery/PasswordRecovery.js +++ b/src/components/Auth/PasswordRecovery/PasswordRecovery.js @@ -34,7 +34,7 @@ class PasswordRecovery extends PureComponent { password: '', passwordRepeat: '', isBeingValidated: false, - isPasswordProtected: false, + isPasswordProtected: config.hostedFrameworkMode, isPersisted, passwordError: '', passwordRepeatError: '', @@ -145,10 +145,10 @@ class PasswordRecovery extends PureComponent { } = this.state const icon = config.showFrameworkMode ? : + 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, }) @@ -202,7 +202,7 @@ class PasswordRecovery extends PureComponent { > {t('auth.rememberMe')} - {config.showFrameworkMode && ( + {showPasswordProtection && (