summaryrefslogtreecommitdiff
path: root/src/Main.purs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-18 05:07:26 -0500
committerLLLL Colonq <llll@colonq>2024-11-18 05:07:26 -0500
commit9c363a2a66f446f474dc3e87d2b0dfaf684667f2 (patch)
tree933c177351d815dc78c8382f6f5fb98ec8e974e9 /src/Main.purs
parentb1a6da461d16e45bf57d01ec77fd8ef041af7c22 (diff)
Let's not be silly with our JSON
Diffstat (limited to 'src/Main.purs')
-rw-r--r--src/Main.purs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Main.purs b/src/Main.purs
index dd0ad07..87a3ccf 100644
--- a/src/Main.purs
+++ b/src/Main.purs
@@ -242,11 +242,7 @@ mainAuth = launchAff_ do
{ text: resp } <- fetch ("/api/firstfactor")
{ method: POST
, headers: { "Content-Type": "application/json" }
- , body: fold
- [ "{\"username\":\"", user
- , "\",\"password\":\"", pass
- , "\"}"
- ]
+ , body: UI.toJSON { user, pass }
}
res <- resp
liftEffect $ log res