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...

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

Drupal7重置密码方法

 

相关文章:

  • 2021-11-24
  • 2022-12-23
  • 2021-11-28
  • 2021-11-18
  • 2022-01-10
  • 2021-12-24
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2021-08-13
  • 2021-11-28
  • 2021-09-01
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案