PDA

View Full Version : VB 5 datamanager - not allowing password to be set


veena
04-03-2014, 06:56 PM
We are trying to add users to VBulletin 5.1.0 using the datamanager APIs.

The call fails when we try to set password in the datamanager object.

These 2 lines work :
$this->userdm->set('username', $username);
$this->userdm->set('email', $email);

The call crashes here:
$this->userdm->set('password', $password);

Here password is a clear text password.

This was working in VB 4.x but is not working after we upgraded to VB 5.1.0 today.

Why the call to set password in the DM object crashing?
What has changed in VB 5.0? Should the password be set differently in the object being sync'd to VB ?

Please help asap.

Thanks,
Veena

cslingsby
04-03-2014, 11:08 PM
I had a similar problem and have implemented a workaround for now by taking out the set password and saving then setting the password with the login library.

$loginlib = vB_Library::instance('login');
$loginlib->setPassword($newuserid, $password, array('passwordhistorylength' => $passwordhistorylength)
);

But I would be interested in how you are supposed to use the dm with 5.1.0

psanchez
10-30-2014, 07:06 PM
I have the same problem. Is there an accepted solution out there? Thanks!