Moodle setup tutorial 4/4 - change admin user's password with a direct database command

preview_player
Показать описание
In our local dev environment, there is no need to have our admin user/password credentials to be complicated and hard to remember. However, we won't be able to update it using moodles UI or core functions because moodle will say our simple password is invalid.

In this tutorial we hash a simple string 'admin', and directly insert that into the database as the admin password.

Рекомендации по теме
Комментарии
Автор

How to use CLI which you are showing at the bottom of the PHP Storm. How you executed the commands for uninstalling and installing.

teerthankermahaveerunivers
Автор

Not working this way. always displays invalid login. what to do??

tester-ng
Автор

echo password_hash('admin', 1);
die;

//senha: admin

sergiorbcruz