我无法登录Drupal管理员或重置密码.我该怎么办?
I cannot login to Drupal admin or reset password. What could I do?
我正在使用xampp.这是我尝试过的.
I am using xampp. Here is what I tried.
1转到127.0.0.1/doesnotmatter/user.我试图提供用户名和密码,我非常确定自己正在尝试正确的凭据,但是它仍然告诉我Sorry, unrecognized username or password. Have you forgotten your password?.
1 Go to 127.0.0.1/doesnotmatter/user. I tried to provide Username and Password I am very sure that I am trying out the correct credentials, but it still tells me Sorry, unrecognized username or password. Have you forgotten your password?.
2我试图重设密码,并提供正确的用户名后,我被重定向到登录页面,并显示消息Unable to send e-mail. Contact the site administrator if the problem persists.
2 I tried to reset the password and after providing the correct Username I am getting redirected to login page with the message shown Unable to send e-mail. Contact the site administrator if the problem persists.
我还能尝试什么?
由于可以使用xampp在本地部署它,因此可以直接访问Drupal项目中的所有内容和最高特权.
I have a direct access to everything and the highest privileges possible in the Drupal project, since I deploy it locally using xampp.
是否可能必须在控制面板"中启用某些xampp模块?例如FileZilla,Mercury还是Tomcat?
May it be that I have to enable some of the xampp modules in Control Panel? For example, FileZilla, Mercury or Tomcat?
谢谢.
推荐答案我认为您应该更改密码才能立即登录.
I think you should change password to login now.
选项1:如果使用的是Drush,则可以使用user-password命令更新密码.
Option 1: If you are using Drush, you can use the user-password command to update password.
drush user-password usernamehere --password="newpasswordhere"选项2:如果您有权访问数据库,请尝试以下查询.
Option 2: If you have access of database then try with below query.
update users set pass=md5(’NEWPASS’) where uid = 1; // uid 1 is for admin role.更多推荐
无法登录Drupal管理员或重置密码
发布评论