Skip to content

Instantly share code, notes, and snippets.

@froboy
Created February 1, 2022 21:57
Show Gist options
  • Save froboy/b11b86a2f62049553a6f35ac64320422 to your computer and use it in GitHub Desktop.
Save froboy/b11b86a2f62049553a6f35ac64320422 to your computer and use it in GitHub Desktop.
Docksal command for resetting the user 1 username and password
#!/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