Drupal7重置密码方法

Drupal版本 7.40

方法1:

根目录index.php添加

require_once 'includes/password.inc';
require_once 'includes/bootstrap.inc';
echo user_hash_password('123456');

这样就能在页面中显示123456加密后的密码。

方法2:

推荐方法

windows下打开命令行

定位到drupal根目录

执行

php script/password-hash.sh 密码1 密码2...

这样就能获取加密后的密码

原文地址:https://www.cnblogs.com/mafeifan/p/4909631.html