summaryrefslogtreecommitdiff
path: root/elm/User/Login.elm
diff options
context:
space:
mode:
Diffstat (limited to 'elm/User/Login.elm')
-rw-r--r--elm/User/Login.elm4
1 files changed, 2 insertions, 2 deletions
diff --git a/elm/User/Login.elm b/elm/User/Login.elm
index cc25d132..d28faf6b 100644
--- a/elm/User/Login.elm
+++ b/elm/User/Login.elm
@@ -80,11 +80,11 @@ update msg model =
Submit ->
if not model.insecure
then ( { model | state = Api.Loading }
- , Api.post "/u/login" (encodeLogin model) Submitted )
+ , Api.post "/u/login.json" (encodeLogin model) Submitted )
else if model.newpass1 /= model.newpass2
then ( { model | noteq = True }, Cmd.none )
else ( { model | state = Api.Loading }
- , Api.post "/u/changepass" (encodeChangePass model) Submitted )
+ , Api.post "/u/changepass.json" (encodeChangePass model) Submitted )
Submitted GApi.Success -> (model, load model.ref)
Submitted GApi.InsecurePass -> ({ model | insecure = True, state = if model.insecure then Api.Error GApi.InsecurePass else Api.Normal }, Cmd.none)