diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-04-01 23:20:54 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-04-01 23:20:54 +0200 |
commit | 6df6386694bd10eaf5b4d5682b298765a8b96681 (patch) | |
tree | 3e0f041d6f97d43ae6c628d3449b9e288cdb2a7a /application/controllers | |
parent | 8fab3e4b1fc80b3421623b6b00a7339e9e5e881a (diff) |
muser: Add set_password
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/user.php | 5 |
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'); |