Created
January 15, 2021 23:39
-
-
Save aanklewicz/65a1a45828aaa53c59b9d31638791a18 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# usage ./Email\ reset.sh -e username@domain.com | |
while getopts "e:" opt; do | |
case $opt in | |
e) EMAIL=$OPTARG ;; | |
*) echo 'error' >&2 | |
exit 1 | |
esac | |
done | |
PASSWORD=$(curl https://www.dinopass.com/password/simple) | |
~/bin/gam/gam update user ${EMAIL} password ${PASSWORD} changepassword on | |
echo "${EMAIL}'s password is ${PASSWORD}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment