Download Jar. Libraryless. Click here for Pure Java version (7446L/52K).
1 | !7 |
2 | |
3 | p {
|
4 | serveHttpAndOpenBrowser(); |
5 | } |
6 | |
7 | html {
|
8 | S cookie = serveHttp_cookieHandling(); |
9 | S url = "/"; |
10 | S pw = params.get("pw");
|
11 | print("cookie=" + cookie + ", pw=" + pw);
|
12 | Pair<S, Bool> p = standaloneWebAuth(url, cookie, pw); |
13 | print("result: " + sfu(p));
|
14 | if (nempty(p.a)) ret p.a; |
15 | if (nempty(params.get("showform"))) ret standaloneWebAuth_showForm(url, cookie);
|
16 | ret p.b ? p("Authed")
|
17 | : p("Not authed") + standaloneWebAuth_showForm(url, cookie);
|
18 | } |
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: | 867 / 1985 |
| Version history: | 14 change(s) |
| Referenced in: | [show references] |