$users


Users Methods

$users->save($user)

Introduced in Version 2.0

Description

Save given user. $user must be valid user object.

Examples

Resetting the admin password

Note: The default admin account always has a page ID of 41. setOutputFormatting(false) is required when editing data in a user's fields.

$item = $users->get(41);
$item->setOutputFormatting(false);
$item->pass = "yo12345";
$users->save($item);

Related

Post Comment