From dff282567d87563db3869c368169610f08ea164e Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Wed, 3 Apr 2019 17:31:40 +0100 Subject: [PATCH] Fix weird instruction on token system and add some more debugging outputs to production release --- fun-with-binary-mostraup-production.zip | Bin 18457 -> 18512 bytes game/script.js | 3 --- server/server.ino | 10 ++++++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/fun-with-binary-mostraup-production.zip b/fun-with-binary-mostraup-production.zip index 66dd7acf96bc4a1e6a89bf6db0cc02f1a228a84b..79dee9917995473af8f1b1bcee67a416215559dd 100644 GIT binary patch delta 12260 zcmZXab8sfiv+rX&Pi)(^ZQHhuC$?=n8{4++WMgN;4L5t=x9XgGfA^f8s_E*Q>2G!a z(N!~5pX?;i#UxM!WjSyN0654$mY$Z3AOfn=q$maeUyTY$O#?`w1cfO6ef_e-CjkNJ zGX?=+OEuwSOC`jBM_W*%rn%aJuiLy+ZS~BX*ITJe<-;HXwgY+$nARydJ?0PJ-{%V- zqoR|}QN5*vj0U=%Q%gfbUnN;soyrtG|sG@%XOnbJh@8c0|STN0^@MT%e$(*ZMS zi`1$`9K|~0Lnt)}@H{9rI$?!AqvWvCgO=n!S$qE^$$^t6Ev1C1&sL8&%retR!wd(J zl86OTKR5z_$uQjCxYM1KD)iE$XXK(OBuPg~AgIwe_tK$5BR^EbC-gz1%f;j0%2iXI zWmt))&{O=SQq)rTDPR|2x~Al(_{pMWcuc~^Vk(5SdCBChUGc=jRzUiGGJ^*r$Cat? zr2xbgA@b32zF><AA?saB{wd)d}gNDRU}-I7=wJ1MadsRJ^6$;@(a}fif&) zyvX-l5^LVjeJt$4F!7;N;-j0=Q8M??)Pl``>=7KNfY-}iXa4WDoyRF)y19%7U5x6wkeT`A~@k`eW zR-hBGR7Zzy4`P#^W#qf>2os0(ZK@-HsH5!Xma7KB&NK2Gll=1CS%{2J!%G}= z8|y?rQ8eT9^s4zTs=qp8YlzTt!~6=%-J!Y>W&+bJR9a8^7D#X@T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?7Y_$Zc&KDTw>_9uv)2G*Q3r+jSV>y?jW<+sG>3gRR*iis>xi) z{w#g;Bg9Tus3v@muBCLanA0osrlK&&1D^Uf5o4vIg{(BseX8U@cb<_rx zjyzA5!;%9KC-f}i`YQ2Dxd+Jo5!4@0lrnn6dDsBNbo57V8P2}coW}nm7&6LK*nH>+ zn*kGWXKz5>OPC%AaX#JYsdaQ%whwZqk)sh373%>!} zx)CD{zniuwrL69J=xPuU_9@?GSAEkvL3ncf+*X1K1#|G76&sxZu8b|ngCiF;pL8Yo zjG-A=rAPc=`rza8TM2qVwC2>KBgKz5U${-7#Yy;xGx@0SuN*+|A=c0>cO;uJx`@`* z11&>aFr)}ZpPtG(CrJ5`Lf|H<3S=7`NuaHMr0D#H8uq;#ZpWm%&2aMACXw?G6g1>! zS^@;$j`QmE7`E142Y2?teR1KynqejSe8~(@_O!=)vP{S%?AsIb#ta{3z+L}`GIhc{ z$tC82{x_A8)dI){JUkNkHYR=L?{eII%+n0i*;8f|Igc8rCGn|>>8F_9V?-IHlFQrz z35+f)AA>u{d}sW8%oU4i3w>9?LMU8JumjRs|f*U`{ezcq+b zqeTO&@Q!w32y{JkB?;MrzxCfIls7SEVeFZYKNh=uLFe^`H6fpD?C zt7@krT#C0hBE=q3qF>$^Y=?{2qC7D$le>oQ=^U&oh}cVWN+HJJQ?pPQe95fVG5;>b zz*HTq7g9Wt&7|~nMPitoZQ^?qhqU}@R8$X0hWdk~ssIKq0`WiKc&eC`E-|2fVP1^NedLG3>z H|CRk04ZcDm diff --git a/game/script.js b/game/script.js index ab9416f..1951141 100644 --- a/game/script.js +++ b/game/script.js @@ -98,9 +98,6 @@ correct_answer = empty_answer; // current answer current_answer = empty_answer; -// Generate a token for this session -sessionStorage.token = Math.random().toString(36).substr(2, 15+2); - /** * Create leds */ diff --git a/server/server.ino b/server/server.ino index 20c44ac..edd7feb 100644 --- a/server/server.ino +++ b/server/server.ino @@ -40,7 +40,7 @@ IPAddress netMsk(255, 255, 255, 0); // These are the WiFi access point settings. Update them to your liking const char *ssid = "Fun with Binary"; -//const char *password = ""; +//const char *wifi_password = ""; // Define a web server at port 80 for HTTP ESP8266WebServer webServer(80); @@ -184,6 +184,8 @@ handleAuth() token = webServer.arg("token").toInt(); webServer.send(200, "text/html", "ok"); turn_all_off(); + Serial.print("Current valid token is: "); + Serial.println(token); } else { @@ -238,6 +240,8 @@ switch_led() if (!is_game_running || token != webServer.arg("token").toInt()) { webServer.send(200, "text/plain", "unauthorized"); + Serial.print("Invalid token tried to play: "); + Serial.println(webServer.arg("token").toInt()); return; } @@ -290,6 +294,8 @@ generate_password() password.setCharAt(i, '1'); } } + Serial.print("Password is: "); + Serial.println(password); } /** @@ -391,7 +397,7 @@ setup() WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0)); // subnet FF FF FF 00 // You can remove/add the password parameter if you want the AP to be open/closed. - WiFi.softAP(ssid); //, password); + WiFi.softAP(ssid); //, wifi_password); // if DNSServer is started with "*" for domain name, it will reply with // provided IP to all DNS request