[FIX] totp (#131)
This commit is contained in:
parent
af5c3efbd2
commit
b2ace37c99
|
@ -62,9 +62,7 @@ class LoginView extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderTOTP = () => {
|
renderTOTP = () => {
|
||||||
if (!this.props.login.failure || this.props.login.error.error !== 'totp-required') {
|
if (/totp/ig.test(this.props.login.error.error)) {
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
ref={ref => this.codeInput = ref}
|
ref={ref => this.codeInput = ref}
|
||||||
|
@ -76,9 +74,12 @@ class LoginView extends React.Component {
|
||||||
autoCapitalize='none'
|
autoCapitalize='none'
|
||||||
onSubmitEditing={this.submit}
|
onSubmitEditing={this.submit}
|
||||||
placeholder='Code'
|
placeholder='Code'
|
||||||
|
underlineColorAndroid='transparent'
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// {this.props.login.isFetching && <Text> LOGANDO</Text>}
|
// {this.props.login.isFetching && <Text> LOGANDO</Text>}
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue