summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/user.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index c2ddf116b..009e4c90c 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -340,10 +340,7 @@ class User extends MY_Controller {
}
if (empty($error)) {
- $this->db->where('id', $userid)
- ->update('users', array(
- 'password' => $this->muser->hash_password($password)
- ));
+ $this->muser->set_password($userid, $password);
$this->db->where('key', $key)
->delete('actions');