Download Jar. Libraryless. Click here for Pure Java version (7446L/52K).
!7 p { serveHttpAndOpenBrowser(); } html { S cookie = serveHttp_cookieHandling(); S url = "/"; S pw = params.get("pw"); print("cookie=" + cookie + ", pw=" + pw); Pair<S, Bool> p = standaloneWebAuth(url, cookie, pw); print("result: " + sfu(p)); if (nempty(p.a)) ret p.a; if (nempty(params.get("showform"))) ret standaloneWebAuth_showForm(url, cookie); ret p.b ? p("Authed") : p("Not authed") + standaloneWebAuth_showForm(url, cookie); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011959 |
Snippet name: | Test standaloneWebAuth [OK] |
Eternal ID of this version: | #1011959/15 |
Text MD5: | 1c153b398af34b062025cef7ecc3844e |
Transpilation MD5: | 5916b9b272c3428e053e1f02bb755402 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-14 00:34:19 |
Source code size: | 478 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 582 / 1359 |
Version history: | 14 change(s) |
Referenced in: | -