Commit 4b57ade3 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[auth] use async/forget-password

parent 6b681ecf
Pipeline #2839 failed with stage
in 0 seconds
......@@ -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 "forgot-password") { email }
decode <$> REST.post Nothing (toUrl backend "async/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