Re: LiveUser to change passwords?

From: Date: Mon, 07 Nov 2005 22:34:50 +0000
Subject: Re: LiveUser to change passwords?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21834@lists.php.net to get a copy of this message
Wright Zane A A1C 30 IS/DOMM wrote:
Hello all, All my LiveUser packages are updated to the most current versions, but I cannot for the life of me seem to find any code that shows how you would update a users password to a new password? I have found an updateUser() function in both the LiveUser package and the LiveUser_Admin package but neither seem to work at all for me for some reason. They all seem to focus on the perm_users table and not the users table? Can anybody provide a code snipped of what is needed to get this to happen? Thanks
from the top of my head it should be something like: $admin =& LiveUser_Admin:factory($conf); $admin->setAdminContainers(); $admin->auth->updateUser(array('password' => $password), array('user_id' => $user_id)); I am quite sure we have an example for this in the example1 inside the LiveUser_Admin package .. there should be a file which samples some calls for working with users. regards, Lukas

« previous php.pear.general (#21834) next »