Fix TOTP login
This commit is contained in:
parent
0a48fadf16
commit
e3fab36f0a
|
@ -107,7 +107,7 @@ class LoginView extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderTOTP = () => {
|
renderTOTP = () => {
|
||||||
if (this.state.totp) {
|
if (this.props.login.errorMessage && this.props.login.errorMessage.error === 'totp-required') {
|
||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
ref={ref => this.codeInput = ref}
|
ref={ref => this.codeInput = ref}
|
||||||
|
@ -166,7 +166,6 @@ class LoginView extends React.Component {
|
||||||
{this.props.login.error && <Text style={styles.error}>{this.props.login.error}</Text>}
|
{this.props.login.error && <Text style={styles.error}>{this.props.login.error}</Text>}
|
||||||
</View>
|
</View>
|
||||||
<Spinner visible={this.props.login.isFetching} textContent={'Loading...'} textStyle={{ color: '#FFF' }} />
|
<Spinner visible={this.props.login.isFetching} textContent={'Loading...'} textStyle={{ color: '#FFF' }} />
|
||||||
|
|
||||||
</KeyboardView>
|
</KeyboardView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue