From 8914fde3ebdf9d87092d4dd4298df78742716a05 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 2 Sep 2023 23:11:41 +0200 Subject: [PATCH] Email / PASS registration --- API/UPLANET.sh | 7 ++++++- templates/register.html | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/API/UPLANET.sh b/API/UPLANET.sh index b097f1f2..9ab9c94c 100755 --- a/API/UPLANET.sh +++ b/API/UPLANET.sh @@ -178,6 +178,11 @@ else ) & fi +### CREATE A G1VISA FOR PLAYER +${MY_PATH}/../tools/VISA.new.sh "${EMAIL}" "${PASS}" "${EMAIL}" "UPlanet" "ADD YOUTUBE VIDEO CHANNEL URL" >> ~/.zen/tmp/email.${EMAIL}.${MOATS}.txt +## SEND EMAIL +${MY_PATH}/../tools/mailjet.sh "${EMAIL}" ~/.zen/tmp/email.${EMAIL}.${MOATS}.txt ## Send VISA.new log to EMAIL + ## HTTP nc ON PORT RESPONSE echo "$HTTPCORS @@ -192,11 +197,11 @@ echo "$HTTPCORS
Download files containing in their name
Use G1Station and compatible G1Card QRCode scanner to operate...
+ $(cat ~/.zen/tmp/email.${EMAIL}.${MOATS}.txt)

${EMAIL} REGISTERED : ${MOATS} : $(date) " > ~/.zen/tmp/${MOATS}/http.rep cat ~/.zen/tmp/${MOATS}/http.rep | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & - end=`date +%s` echo "(TW) MOA Operation time was "`expr $end - $start` seconds. exit 0 diff --git a/templates/register.html b/templates/register.html index 5d5aa358..bd528581 100644 --- a/templates/register.html +++ b/templates/register.html @@ -78,7 +78,7 @@ header {

>>> (◕‿‿◕) <<<

- PASS :

+ PASS :

@@ -117,7 +117,7 @@ document.addEventListener('DOMContentLoaded', function() { const latElement = document.querySelector('input[name="salt"]'); const lonElement = document.querySelector('input[name="pepper"]'); const uplanetElement = document.querySelector('input[name="uplanet"]'); - const passElement = document.querySelector('input[name="PASS"]'); + const passElement = document.querySelector('input[name="g1pub"]'); // Generate a random 6-digit number and set it as the default value for "PASS" if (passElement) {