|
@@ 610-614 (lines=5) @@
|
| 607 |
|
}) |
| 608 |
|
->first(); |
| 609 |
|
|
| 610 |
|
if (is_null($user) || $user->is_deleted == true) { |
| 611 |
|
$this->Flash->error(__('This user doesn\'t exist or has been deleted.')); |
| 612 |
|
|
| 613 |
|
return $this->redirect(['controller' => 'pages', 'action' => 'home']); |
| 614 |
|
} |
| 615 |
|
|
| 616 |
|
$this->set(compact('user')); |
| 617 |
|
} |
|
@@ 778-782 (lines=5) @@
|
| 775 |
|
]) |
| 776 |
|
->first(); |
| 777 |
|
|
| 778 |
|
if (is_null($user)) { |
| 779 |
|
$this->Flash->error(__("This code is not associated with this users or is incorrect.")); |
| 780 |
|
|
| 781 |
|
return $this->redirect(['controller' => 'pages', 'action' => 'home']); |
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
$expire = $user->password_code_expire->timestamp + (Configure::read('User.ResetPassword.expire_code') * 60); |
| 785 |
|
|