Skip to content

Commit

Permalink
feat(sso): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Dec 4, 2021
1 parent 946b3cb commit 517e2b6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export default ({ api, coreSagas, networks }) => {
const { code, password, username } = action.payload
const unificationFlowType = yield select(selectors.auth.getAccountUnificationFlowType)
const magicLinkData: WalletDataFromMagicLink = yield select(S.getMagicLinkData)
const { redirect } = yield select(S.getProductAuthMetadata)
const exchangeURL = magicLinkData?.exchange_auth_url
yield put(startSubmit(LOGIN_FORM))
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ const EnterPasswordExchange = (props: Props) => {
submitting
} = props
const passwordError = exchangeError && exchangeError === ExchangeErrorCodes.INVALID_CREDENTIALS
const twoFactorRequired = exchangeError && exchangeError === ExchangeErrorCodes.BAD_2FA
const twoFactorError = exchangeError && exchangeError === ExchangeErrorCodes.WRONG_2FA

const onWalletTabClick = () => {
authActions.setProductAuthMetadata({ product: ProductAuthOptions.WALLET })
props.setStep(LoginSteps.ENTER_EMAIL_GUID)
}

return (
<LoginWrapper>
<TabWrapper>
Expand Down Expand Up @@ -101,35 +98,6 @@ const EnterPasswordExchange = (props: Props) => {
)}
</FormItem>
</FormGroup>
{/* {(twoFactorRequired || twoFactorError) && (
<FormGroup>
<FormItem>
<FormLabel htmlFor='code'>
<FormattedMessage
id='scenes.logins.twofa.enter_code'
defaultMessage='Enter your Two Factor Authentication Code'
/>
</FormLabel>
<Field
name='exchangeTwoFA'
normalize={removeWhitespace}
validate={[required]}
component={TextBox}
noLastPass
autoFocus
data-e2e='loginTwoFactorCode'
/>
{twoFactorError && (
<FormError position='absolute'>
<FormattedMessage
id='scenes.login.exchange.incorrect_code'
defaultMessage='Incorrect code'
/>
</FormError>
)}
</FormItem>
</FormGroup>
)} */}
<CenteredColumn>
<ActionButton
type='submit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { HeartbeatLoader, Text } from 'blockchain-info-components'
import { FormError, FormGroup, FormItem, FormLabel, TextBox } from 'components/Form'
import { Wrapper } from 'components/Public'
import { ExchangeErrorCodes } from 'data/types'
import { isBrowserSupported } from 'services/browser'
import { required } from 'services/forms'

import { Props } from '../..'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Wrapper } from 'components/Public'
import { ProductAuthOptions } from 'data/types'
import { isBrowserSupported } from 'services/browser'
import { required, validWalletIdOrEmail } from 'services/forms'
import { media } from 'services/styles'

import { Props } from '../..'
import {
Expand Down

0 comments on commit 517e2b6

Please sign in to comment.