| @@ 182-186 (lines=5) @@ | ||
| 179 | // If throttling time is above zero, we can't allow |
|
| 180 | // logins now. |
|
| 181 | $time = (int)$this->isThrottled($user); |
|
| 182 | if ($time > 0) |
|
| 183 | { |
|
| 184 | $this->error = sprintf(lang('auth.throttled'), $time); |
|
| 185 | return false; |
|
| 186 | } |
|
| 187 | ||
| 188 | // Get ip address |
|
| 189 | $ip_address = $this->ci->input->ip_address(); |
|
| @@ 673-677 (lines=5) @@ | ||
| 670 | // If throttling time is above zero, we can't allow |
|
| 671 | // logins now. |
|
| 672 | $time = (int)$this->isThrottled($user); |
|
| 673 | if ($time > 0) |
|
| 674 | { |
|
| 675 | $this->error = sprintf(lang('auth.throttled'), $time); |
|
| 676 | return false; |
|
| 677 | } |
|
| 678 | ||
| 679 | // Get ip address |
|
| 680 | $ip_address = $this->ci->input->ip_address(); |
|