From 4b57ade3378d66369ee416918d4df5381fcef071 Mon Sep 17 00:00:00 2001
From: Przemek Kaminski <pk@intrepidus.pl>
Date: Fri, 20 May 2022 19:49:42 +0200
Subject: [PATCH] [auth] use async/forget-password

---
 src/Gargantext/Sessions.purs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gargantext/Sessions.purs b/src/Gargantext/Sessions.purs
index e72571d8..ac6f9022 100644
--- a/src/Gargantext/Sessions.purs
+++ b/src/Gargantext/Sessions.purs
@@ -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
-- 
2.21.0