If you've forgotten the admin password you can change it or create a new admin user using the command line on your application server. You may also need to unblock the admin account if you have five failed login attempts
Change the password
Run the following command in order to change the password of the admin user to BB5FUndgs9jp3k3
sudo docker exec jumptoweb vendor/bin/drush user-password admin --password="BB5FUndgs9jp3k3"
For versions of IV before 5.4, run these commands instead:
user@ivserver:~$ sudo -i root@ivserver:~# cd /var/www/html/JumpToWeb/ root@ivserver:/var/www/JumpToWeb# drush user-password admin --password="BB5FUndgs9jp3k3"
You can also use the this command to change the password of any other user by replacing admin with their username
Create a new admin user
Run the following commands in order to create a new admin user called newadminuser with password BB5FUndgs9jp3k3 and email address example@example.com:
sudo docker exec jumptoweb vendor/bin/drush user-create newadminuser --mail="example@example.com" --password="BB5FUndgs9jp3k3" sudo docker exec jumptoweb vendor/bin/drush user-add-role "administrator" newadminuser
For versions of IV before 5.4, run these commands instead:
user@ivserver:~$ sudo -i root@ivserver:~# cd /var/www/JumpToWeb/ root@ivserver:/var/www/JumpToWeb# drush user-create newadminuser --mail="example@example.com" --password="BB5FUndgs9jp3k3" root@ivserver:/var/www/JumpToWeb# drush user-add-role "administrator" newadminuser
Unblock user account after 5 failed login attempts
Run the following commands in order to unblock all blocked users
sudo docker exec jumptoweb vendor/bin/drush php-eval 'db_query("DELETE FROM `flood`")';
For versions of IV before 5.4, run these commands instead:
user@ivserver:~$ sudo -i root@ivserver:~# cd /var/www/JumpToWeb/ root@ivserver: drush php-eval 'db_query("DELETE FROM `flood`")';