| @@ 116-120 (lines=5) @@ | ||
| 113 | // If throttling time is above zero, we can't allow |
|
| 114 | // logins now. |
|
| 115 | $time = (int)$this->isThrottled($user); |
|
| 116 | if ($time > 0) |
|
| 117 | { |
|
| 118 | $this->error = sprintf(lang('auth.throttled'), $time); |
|
| 119 | return false; |
|
| 120 | } |
|
| 121 | ||
| 122 | if (! $user) |
|
| 123 | { |
|
| @@ 683-687 (lines=5) @@ | ||
| 680 | // If throttling time is above zero, we can't allow |
|
| 681 | // logins now. |
|
| 682 | $time = (int)$this->isThrottled($user); |
|
| 683 | if ($time > 0) |
|
| 684 | { |
|
| 685 | $this->error = sprintf(lang('auth.throttled'), $time); |
|
| 686 | return false; |
|
| 687 | } |
|
| 688 | ||
| 689 | // Get ip address |
|
| 690 | $ip_address = $this->ci->input->ip_address(); |
|