diff options
Diffstat (limited to 'main.txr')
-rwxr-xr-x | main.txr | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,5 @@ #!/usr/local/bin/txr +@(bind http-input @(get-lines *stdin*)) @(next :args) @(load "config") @(load "logging") @@ -34,7 +35,7 @@ QUERY_STRING=logout @ (login-form "Logged out; you may log in again.") @ (or) QUERY_STRING=update-aliases -@ (next *stdin*) +@ (next :list http-input) @postdata @ (cases) @ (update-aliases cookie-userid postdata) @@ -48,7 +49,7 @@ QUERY_STRING=edit=@{edit-alias} @ (or) QUERY_STRING=update-memo&@{edit-alias} @ (cases) -@ (next *stdin*) +@ (next :list http-input) memo=@{new-memo}&@(skip) @ (update-memo cookie-userid edit-alias new-memo) @ (or) @@ -63,7 +64,7 @@ QUERY_STRING=@(skip) @ (cases) QUERY_STRING=auth @ (cases) -@ (next *stdin*) +@ (next :list http-input) userid=@userid&password=@password @ (set password @(url-decode password)) @ (auth userid password) |