Update totp.sh
This commit is contained in:
3
totp.sh
3
totp.sh
@@ -3,13 +3,12 @@
|
|||||||
addsecret() {
|
addsecret() {
|
||||||
read -p "Insert secret GUID: " SECRET
|
read -p "Insert secret GUID: " SECRET
|
||||||
read -p "Insert secret name: " SECRETNAME
|
read -p "Insert secret name: " SECRETNAME
|
||||||
echo "#####################################"
|
|
||||||
docker exec -it totp-docker totp config update $SECRETNAME $SECRET
|
docker exec -it totp-docker totp config update $SECRETNAME $SECRET
|
||||||
}
|
}
|
||||||
|
|
||||||
getcode() {
|
getcode() {
|
||||||
read -p "Insert secret name: " SECRETNAME
|
read -p "Insert secret name: " SECRETNAME
|
||||||
echo "#####################################"
|
echo "Generated code:"
|
||||||
docker exec -it totp-docker totp $SECRETNAME
|
docker exec -it totp-docker totp $SECRETNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user