|
@@ 201-206 (lines=6) @@
|
| 198 |
|
->where($credentials) |
| 199 |
|
->first(); |
| 200 |
|
|
| 201 |
|
if (! $user) |
| 202 |
|
{ |
| 203 |
|
$this->error = lang('auth.invalid_user'); |
| 204 |
|
$this->ci->login_model->recordLoginAttempt($ip_address); |
| 205 |
|
return false; |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
// Now, try matching the passwords. |
| 209 |
|
$result = password_verify($password, $user['password_hash']); |
|
@@ 692-697 (lines=6) @@
|
| 689 |
|
// Get ip address |
| 690 |
|
$ip_address = $this->ci->input->ip_address(); |
| 691 |
|
|
| 692 |
|
if (! $user) |
| 693 |
|
{ |
| 694 |
|
$this->error = lang('auth.reset_no_user'); |
| 695 |
|
$this->ci->login_model->recordLoginAttempt($ip_address); |
| 696 |
|
return false; |
| 697 |
|
} |
| 698 |
|
|
| 699 |
|
// Is generated reset_hash string matches one from the table? |
| 700 |
|
if ($reset_hash !== $user['reset_hash']) |