Skip to content

Commit

Permalink
fixed strtotime() parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed May 14, 2016
1 parent e205dc2 commit 4c3aec4
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 @@ -639,7 +639,7 @@ public function update_login_attempts($email) {

$data = array();

if (strtotime($row->last_login_attempt) > strtotime($this->config_vars['max_login_attempt_per_minutes'])) {
if (strtotime($row->last_login_attempt) > strtotime("-"+$this->config_vars['max_login_attempt_per_minutes']+" minutes")) {
$data['login_attempts'] = $row->login_attempts + 1;

if($this->config_vars['update_last_login_attempt']){
Expand Down

0 comments on commit 4c3aec4

Please sign in to comment.