From 6df6386694bd10eaf5b4d5682b298765a8b96681 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 1 Apr 2016 23:20:54 +0200 Subject: muser: Add set_password Signed-off-by: Florian Pritz --- application/models/muser.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'application/models/muser.php') 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(); -- cgit v1.2.3-24-g4f1b