Commit 6b681ecf authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[auth] forgot password api endpoint fix

parent 65df5cfc
......@@ -124,7 +124,7 @@ postAuthRequest backend ar@(AuthRequest {username}) =
postForgotPasswordRequest :: Backend -> String -> Aff (Either String { status :: String })
postForgotPasswordRequest backend email =
decode <$> REST.post Nothing (toUrl backend "forgotPassword") { email }
decode <$> REST.post Nothing (toUrl backend "forgot-password") { email }
where
decode (Left err) = Left $ "Error when sending REST.post: " <> show err
decode (Right s) = Right s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment