无法登录Drupal admin或重置密码

问题描述 投票:0回答:3

我无法登录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.

enter image description here

我还能尝试什么?

我可以直接访问Drupal项目中的所有内容和最高权限,因为我使用xampp在本地部署它。

可能是我必须在控制面板中启用一些xampp模块吗?例如,FileZilla,Mercury还是Tomcat?

enter image description here

谢谢。

drupal login credentials username change-password
3个回答
2
投票

我认为你现在应该更改密码登录。

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

1
投票

你可以:

  • 尝试设置smtp服务器,以便drupal可以向您发送更改密码的邮件
  • 尝试使用您拥有的凭据登录原始站点。如果他们在那里工作,他们必须在您当地的网站工作。
  • 您可以在本地设置另一个站点。使用相同的文件(相同的“秘密”字符串和类似的)。然后在那里创建一个用户并将其数据(用户名,散列密码,基本上整个用户记录)复制到有问题的站点,然后尝试登录。

0
投票

也许如果你重置密码就行了

你可以使用drush重置密码:

drush upwd USERNAME PASSWORD
© www.soinside.com 2019 - 2024. All rights reserved.