Update totp.sh
This commit is contained in:
2
totp.sh
2
totp.sh
@@ -3,11 +3,13 @@
|
|||||||
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 "#####################################"
|
||||||
docker exec -it totp-docker totp $SECRETNAME
|
docker exec -it totp-docker totp $SECRETNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user