Uses 1113K of libraries. Click here for Pure Java version (2461L/13K).
1 | cmodule2 SalterService > DynPrintLog {
|
2 | set flag NoNanoHTTPD. |
3 | !include #1029545 // API for Eleu |
4 | |
5 | switchable S allowedIP; |
6 | switchable S passwordLocation; |
7 | |
8 | O html(IWebRequest req) ctex {
|
9 | if (!eq(req.clientIP(), allowedIP)) |
10 | ret "Not allowed"; |
11 | |
12 | if (empty(passwordLocation) || !fileExists(passwordLocation)) |
13 | ret "Misconfigured"; |
14 | |
15 | ret md5(req.get("pw") + trimLoadTextFile(passwordLocation));
|
16 | } |
17 | } |
Began life as a copy of #1030416
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031702 |
| Snippet name: | Password Salter Service |
| Eternal ID of this version: | #1031702/2 |
| Text MD5: | a6b92a4f8d20240897e39c5ef67911ba |
| Transpilation MD5: | 7b78b3338ae5781e119d43fddc86080a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-27 06:40:09 |
| Source code size: | 455 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 388 / 40041 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |