Created
February 1, 2022 21:57
-
-
Save froboy/b11b86a2f62049553a6f35ac64320422 to your computer and use it in GitHub Desktop.
Docksal command for resetting the user 1 username and password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
echo "Resetting uid=1 to 'admin' and setting password to admin. (Shhhhh!)" | |
fin drush sql-query "UPDATE users_field_data SET name='admin' WHERE uid=1" | |
fin drush upwd admin admin | |
echo "Your login is ready: https://${VIRTUAL_HOST}/user/login admin:admin." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment