如何在 SuiteCRM 上更改 SQL 的用户密码?
How to change an user password with SQL on SuiteCRM?
以前在 SugarCRM 中,以下语句就足够了:
UPDATE users SET user_hash = MD5('PASSWORD') WHERE user_name = 'USERNAME';
我现在找不到关于如何使用 SuiteCRM 的网站?
我找到了这个:
Can I still use MD5 passwords? I’m used to that and can easily administer passwords in the database using just MD5.
Sugar will still recognize passwords stored in MD5 format, but anytime a password is changed it will convert to the newer format. Unless very old PHP build (5.2) used in a system where better
crypt() is not available, new password will use salted hashing algorithm.
在 SugarCRM 的网站上发布:
https://developer.sugarcrm.com/2012/05/16/new-for-sugar-6-5-stronger-password-storage-encryption/
事实证明,SuiteCRM 也使用这种新的密码格式,但它仍然可以识别 md5 密码,因此,相同的 sql 语句有效:
UPDATE users SET user_hash = MD5('PASSWORD') WHERE user_name = 'USERNAME';
我成功了:)
顺便说一句,同样 post 建议使用 PHP crypt 更改密码,如下所示:
crypt(md5("newpassword"))
也许它可以帮助其他人。
以前在 SugarCRM 中,以下语句就足够了:
UPDATE users SET user_hash = MD5('PASSWORD') WHERE user_name = 'USERNAME';
我现在找不到关于如何使用 SuiteCRM 的网站?
我找到了这个:
Can I still use MD5 passwords? I’m used to that and can easily administer passwords in the database using just MD5.
Sugar will still recognize passwords stored in MD5 format, but anytime a password is changed it will convert to the newer format. Unless very old PHP build (5.2) used in a system where better crypt() is not available, new password will use salted hashing algorithm.
在 SugarCRM 的网站上发布:
https://developer.sugarcrm.com/2012/05/16/new-for-sugar-6-5-stronger-password-storage-encryption/
事实证明,SuiteCRM 也使用这种新的密码格式,但它仍然可以识别 md5 密码,因此,相同的 sql 语句有效:
UPDATE users SET user_hash = MD5('PASSWORD') WHERE user_name = 'USERNAME';
我成功了:)
顺便说一句,同样 post 建议使用 PHP crypt 更改密码,如下所示:
crypt(md5("newpassword"))
也许它可以帮助其他人。