Skip to main content

User account menu

  • Log in

Main navigation

  • All Articles
  • Home

Breadcrumb

  1. Home

Jak zresetować HASŁO ADMINA W #DRUPAL? 3 proste sposoby!

By admin on Fri, 19 Sep 2025 - 12:16
Article Type
brief_focused
Video url
https://www.youtube.com/watch?v=dL3URsfngbU

Jak zresetować HASŁO ADMINA W #DRUPAL? 3 proste sposoby!

This tutorial outlines three distinct methods for recovering a forgotten administrator password in Drupal, ranging from simple web-based forms to direct database manipulation and command-line tools.

Drupal administrators, developers, and any user who has lost access to their Drupal site due to a forgotten password would benefit from watching this video.

Topics Covered:

Password Recovery via Drupal's Built-in Form
This method involves using Drupal's standard "Forgot Password" functionality. Users provide their email or username on the login page to receive password reset instructions. This approach requires a functional SMTP server for email delivery and leads to a temporary login link that allows the user to set a new password.

Password Recovery by Direct Database Modification
This technique is employed when email-based recovery is not feasible, such as when no SMTP server is configured. It requires direct access to the Drupal database, typically via tools like PHP MyAdmin. The user must locate the users_field_data table, specifically the pass field, and manually update the password. Crucially, the new password must be hashed using a tool (e.g., bcrypt online) before being inserted into the database.

Password Recovery using Drush Command Line Tool
For users with shell access to their Drupal server, Drush provides a powerful command-line interface for password recovery. Two primary Drush commands are demonstrated: drush user:password user_name --password=new_password to directly set a new password for a specified user, and drush user:login user_name (or drush uli) to generate a one-time login link.

Importance of Password Managers
As a preventative measure, the video briefly recommends the use of password managers. This practice helps users avoid future password recovery issues by securely storing multiple passwords, requiring them to remember only a single master password for the manager itself.

Legal

  • Contact
Clear keys input element