From e3fab36f0a40f2ecd9004a9a6b361d01296eeb30 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Sun, 20 Aug 2017 21:38:18 -0300 Subject: [PATCH] Fix TOTP login --- app/views/login.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/login.js b/app/views/login.js index e32e21cd..7f37a7de 100644 --- a/app/views/login.js +++ b/app/views/login.js @@ -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 ( this.codeInput = ref} @@ -166,7 +166,6 @@ class LoginView extends React.Component { {this.props.login.error && {this.props.login.error}} - ); }