summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-18 05:11:16 -0500
committerLLLL Colonq <llll@colonq>2024-11-18 05:11:16 -0500
commit07adfbdcb959e2a789551e516bd389ce0002c6f8 (patch)
tree318ed73f41269e1d657aa685007de0f3171ef5ae
parent9c363a2a66f446f474dc3e87d2b0dfaf684667f2 (diff)
Use the right field names
-rw-r--r--src/Main.purs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Main.purs b/src/Main.purs
index 87a3ccf..02d1b08 100644
--- a/src/Main.purs
+++ b/src/Main.purs
@@ -237,12 +237,12 @@ mainAuth = launchAff_ do
liftEffect $ Ev.preventDefault ev
usernameInp <- byId "lcolonq-auth-username"
passwordInp <- byId "lcolonq-auth-password"
- user <- getValue usernameInp
- pass <- getValue passwordInp
+ username <- getValue usernameInp
+ password <- getValue passwordInp
{ text: resp } <- fetch ("/api/firstfactor")
{ method: POST
, headers: { "Content-Type": "application/json" }
- , body: UI.toJSON { user, pass }
+ , body: UI.toJSON { username, password }
}
res <- resp
liftEffect $ log res