From f4ea6fb6c577d41f72cc33283e42492e03833f00 Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Sat, 6 May 2023 00:44:46 -0600
Subject: Añade ruta account
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/forms/login_form.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/components/forms/login_form.tsx')

diff --git a/src/components/forms/login_form.tsx b/src/components/forms/login_form.tsx
index f08d2c5..44c3da5 100644
--- a/src/components/forms/login_form.tsx
+++ b/src/components/forms/login_form.tsx
@@ -35,9 +35,12 @@ export function LoginForm() {
     const client = new ApiClient();
     const form = event.target;
     const formData = new FormData(form);
+    const headers = {
+      "Content-Type": "multipart/form-data"
+    };
 
     try {
-      const response = await client.post("/login", formData);
+      const response = await client.post("/login", formData, headers);
       const token = new Token();
       token.set(response.data.token);
       token.setRefresh(response.data.refresh);
-- 
cgit v1.2.3

