简体   繁体   中英

Incorrect Password Value on Save in SocialEngine / Zend Framework

I'm using a custom script to update SocialEngine user password. However, after setting the value properly, it is changed when saved. I can't figure out why.

$user = Engine_Api::_()->getItemTable('user')->fetchRow...//etc

$user->password = md5($coresalt.$newpass.$usersalt);

echo $user->password; // Correct value f115c8dddcd360bb7ccd8f801520036a

$user->save(); // Why does it get changed here?

echo $user->password; // Incorrect value 30d04d29530332248833ddfbfe6352f8

您可以通过如下设置密码来更新engine4_users:

password = MD5(CONCAT('engine4_core_settings core.secret value','$newpassword',salt))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM