make UPlanet VISA

This commit is contained in:
fred 2023-11-26 17:44:03 +01:00
parent 91109a0918
commit 6199854076
2 changed files with 4 additions and 9 deletions

View File

@ -680,6 +680,7 @@ fi
################################################################################
## QRCODE IS IPNS FORMAT : CHANGE .current AND MAKE G1BILLETS
ASTROPATH=$(grep -r $QRCODE ~/.zen/game/players/*/ipfs/moa | tail -n 1 | cut -d ':' -f 1 | rev | cut -d '/' -f 2- | rev 2>/dev/null)
## NB : COULD BE EXTENDED TO SWARM SEARCH (TODO)
if [[ ${ASTROPATH} != "" && $APPNAME == "" ]]; then
PLAYER=$(echo ${ASTROPATH} | rev | cut -d '/' -f 3 | rev)
@ -689,7 +690,7 @@ if [[ ${ASTROPATH} != "" && $APPNAME == "" ]]; then
echo "LINKING ${PLAYER} to .current"
#### SELECT PARRAIN "G1PalPay"
echo "#>>>>>>>>>>>> # REDIRECT TO CREATE G1BILLETS"
echo "#>>>>>>>>>>>> # REDIRECT TO CREATE ZENCARD"
sed "s~_TWLINK_~${myG1BILLET}?montant=0\&style=${PLAYER}~g" ${MY_PATH}/../templates/index.302 > ~/.zen/tmp/${MOATS}/index.redirect
sed -i "s~Set-Cookie*~Set-Cookie: $COOKIE~" ~/.zen/tmp/${MOATS}/index.redirect
echo "url='"${myG1BILLET}"?montant=0\&style=${PLAYER}'" >> ~/.zen/tmp/${MOATS}/index.redirect

View File

@ -125,11 +125,8 @@ fi
[[ $PEPPER == "" ]] && PEPPER=$(${MY_PATH}/../tools/diceware.sh 2 | xargs)
#~ echo "-> PASS : $PEPPER"
PSEUDO=${PLAYER%%[0-9]*}
[[ ! $PSEUDO ]] && PSEUDO="qo-op"
# PSEUDO=${PSEUDO%%[0-9]*}
[[ ! $PSEUDO ]] && PSEUDO=${PLAYER%%[0-9]*}
[[ ! $PSEUDO ]] && PSEUDO="Anonymous"
[[ $(ls ~/.zen/game/players/$PSEUDO 2>/dev/null) ]] && echo "$PSEUDO EST DEJA UN PLAYER. EXIT" && exit 1
# PSEUDO=${PSEUDO,,} #lowercase
@ -138,9 +135,6 @@ PSEUDO=${PLAYER%%[0-9]*}
PLAYER=${PLAYER,,}
[[ ! $PSEUDO ]] && PSEUDO="Anonymous"
# echo "Crypto ID PLAYER :"; sleep 1; echo "${PLAYER}"; sleep 2
# 4 DIGIT PASS CODE TO PROTECT QRSEC
PASS=$(echo "${RANDOM}${RANDOM}${RANDOM}${RANDOM}" | tail -c-5)