Fix TOTP login

This commit is contained in:
Diego Sampaio 2017-08-20 21:38:18 -03:00
parent 0a48fadf16
commit e3fab36f0a
No known key found for this signature in database
GPG Key ID: E060152B30502562
1 changed files with 1 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class LoginView extends React.Component {
}
renderTOTP = () => {
if (this.state.totp) {
if (this.props.login.errorMessage && this.props.login.errorMessage.error === 'totp-required') {
return (
<TextInput
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>}
</View>
<Spinner visible={this.props.login.isFetching} textContent={'Loading...'} textStyle={{ color: '#FFF' }} />
</KeyboardView>
);
}