Skip to content

Commit

Permalink
fixed TOTP login bug (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Feb 28, 2018
1 parent 3724ab2 commit 1154c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$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);
}
Expand Down

0 comments on commit 1154c4a

Please sign in to comment.