PluginProbe
ManageWP Worker / 3.8.2
ManageWP Worker v3.8.2
4.9.38 4.9.37 4.9.36 4.9.35 4.9.34 3.8.7 3.8.8 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.18 3.9.19 3.9.2 3.9.20 3.9.21 3.9.22 3.9.23 3.9.24 All 73 releases
worker / user.class.php

user.class.php in ManageWP Worker 3.8.2, at user.class.php

35 lines 850 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class MMB_User extends MMB_Core
4 {
5 function __construct()
6 {
7 parent::__construct();
8 }
9
10 /*************************************************************
11 * FACADE functions
12 * (functions to be called after a remote XMLRPC from Master)
13 **************************************************************/
14 function change_password($params)
15 {
16 $this->_escape($params);
17 $username = $params[0];
18 $password = trim($params[1]);
19 $new_password = trim(base64_decode($params[2]));
20
21 if ((!$user = $this->login($username, $password)) || ($new_password ==''))
22 {
23 return FALSE;
24 }
25
26 wp_update_user(array(
27 'ID' => $user->data->ID,
28 'user_pass' => $new_password,
29 ));
30
31 return TRUE;
32 }
33 }
34
35