Skip to content

Commit

Permalink
Fix #30
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonsalas committed Sep 4, 2018
1 parent 2eec314 commit cf53d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth/SimpleAuth/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ public function passwordReset()
// this email address (max 3 within 2 hours)

$requestCount = $this->db->where('email', $this->input->post('email'))
->where('created_at >=', date('Y-m-d H:i:s'))
->where('created_at <=', date('Y-m-d H:i:s', time() + (60 * 60 * 2))) // 2 hours
->where('created_at <=', date('Y-m-d H:i:s'))
->where('created_at >=', date('Y-m-d H:i:s', time() - (60 * 60 * 2))) // 2 hours
->count_all_results(config_item('simpleauth_password_resets_table'));

Debug::log('Password reset count for this email: ' . $requestCount, 'info', 'auth');
Expand Down

0 comments on commit cf53d35

Please sign in to comment.