|
@@ 623-632 (lines=10) @@
|
| 620 |
|
$this->db->update($this->tables['users'], $data, array($this->identity_column => $identity)); |
| 621 |
|
|
| 622 |
|
$return = $this->db->affected_rows() == 1; |
| 623 |
|
if ($return) |
| 624 |
|
{ |
| 625 |
|
$this->trigger_events(array('post_change_password', 'post_change_password_successful')); |
| 626 |
|
$this->set_message('password_change_successful'); |
| 627 |
|
} |
| 628 |
|
else |
| 629 |
|
{ |
| 630 |
|
$this->trigger_events(array('post_change_password', 'post_change_password_unsuccessful')); |
| 631 |
|
$this->set_error('password_change_unsuccessful'); |
| 632 |
|
} |
| 633 |
|
|
| 634 |
|
return $return; |
| 635 |
|
} |
|
@@ 678-687 (lines=10) @@
|
| 675 |
|
$this->trigger_events('extra_where'); |
| 676 |
|
|
| 677 |
|
$successfully_changed_password_in_db = $this->db->update($this->tables['users'], $data, array($this->identity_column => $identity)); |
| 678 |
|
if ($successfully_changed_password_in_db) |
| 679 |
|
{ |
| 680 |
|
$this->trigger_events(array('post_change_password', 'post_change_password_successful')); |
| 681 |
|
$this->set_message('password_change_successful'); |
| 682 |
|
} |
| 683 |
|
else |
| 684 |
|
{ |
| 685 |
|
$this->trigger_events(array('post_change_password', 'post_change_password_unsuccessful')); |
| 686 |
|
$this->set_error('password_change_unsuccessful'); |
| 687 |
|
} |
| 688 |
|
|
| 689 |
|
return $successfully_changed_password_in_db; |
| 690 |
|
} |