@@ 191-196 (lines=6) @@ | ||
188 | // Get ip address |
|
189 | $ip_address = $this->ci->input->ip_address(); |
|
190 | ||
191 | if (! $user) |
|
192 | { |
|
193 | $this->error = lang('auth.invalid_user'); |
|
194 | $this->ci->login_model->recordLoginAttempt($ip_address); |
|
195 | return false; |
|
196 | } |
|
197 | ||
198 | // Now, try matching the passwords. |
|
199 | $result = password_verify($password, $user['password_hash']); |
|
@@ 682-687 (lines=6) @@ | ||
679 | // Get ip address |
|
680 | $ip_address = $this->ci->input->ip_address(); |
|
681 | ||
682 | if (! $user) |
|
683 | { |
|
684 | $this->error = lang('auth.reset_no_user'); |
|
685 | $this->ci->login_model->recordLoginAttempt($ip_address); |
|
686 | return false; |
|
687 | } |
|
688 | ||
689 | // Is generated reset_hash string matches one from the table? |
|
690 | if ($reset_hash !== $user['reset_hash']) |