summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-04-01 23:20:54 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-04-01 23:20:54 +0200
commit6df6386694bd10eaf5b4d5682b298765a8b96681 (patch)
tree3e0f041d6f97d43ae6c628d3449b9e288cdb2a7a /application/models
parent8fab3e4b1fc80b3421623b6b00a7339e9e5e881a (diff)
muser: Add set_password
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/muser.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index 852a7c3e3..8cdc91e6d 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -245,6 +245,13 @@ class Muser extends CI_Model {
}
}
+ public function set_password($userid, $password) {
+ $this->db->where('id', $userid)
+ ->update('users', array(
+ 'password' => $this->hash_password($password)
+ ));
+ }
+
public function get_upload_id_limits()
{
$userid = $this->get_userid();