From 1154c4ac0d0848f5a9cd3551a0e150d6339026c5 Mon Sep 17 00:00:00 2001 From: REJack Date: Wed, 28 Feb 2018 11:51:59 +0100 Subject: [PATCH] fixed TOTP login bug (#206) --- application/libraries/Aauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index d43000e..239ab4a 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -185,7 +185,7 @@ class Aauth { $this->error($this->CI->lang->line('aauth_error_no_user')); return FALSE; } - if($this->config_vars['totp_active'] == TRUE AND $this->config_vars['totp_only_on_ip_change'] == FALSE AND $this->config_vars['totp_two_step_login_active'] == FALSE){ + if($this->config_vars['totp_active'] == TRUE AND $this->config_vars['totp_only_on_ip_change'] == FALSE AND $this->config_vars['totp_two_step_login_active'] == TRUE){ if($this->config_vars['totp_two_step_login_active'] == TRUE){ $this->CI->session->set_userdata('totp_required', true); }