我无法登录Drupal admin或重置密码。我能做什么?
我正在使用xampp。这是我试过的。
1去http://127.0.0.1/doesnotmatter/user
。我试图提供用户名和密码我非常确定我正在尝试正确的凭据,但它仍然告诉我Sorry, unrecognized username or password. Have you forgotten your password?
。
2我尝试重置密码,在提供正确的用户名后,我被重定向到登录页面,显示的信息为Unable to send e-mail. Contact the site administrator if the problem persists.
我还能尝试什么?
我可以直接访问Drupal项目中的所有内容和最高权限,因为我使用xampp在本地部署它。
可能是我必须在控制面板中启用一些xampp模块吗?例如,FileZilla,Mercury还是Tomcat?
谢谢。
我认为你现在应该更改密码登录。
选项1:如果您使用的是Drush,则可以使用user-password命令更新密码。
drush user-password usernamehere --password="newpasswordhere"
选项2:如果您有数据库访问权限,请尝试使用以下查询。
update users set pass=md5(’NEWPASS’) where uid = 1; // uid 1 is for admin role.
你可以:
也许如果你重置密码就行了
你可以使用drush
重置密码:
drush upwd USERNAME PASSWORD