diff --git a/MySQL_conf_pbx/test1/reactcezenpbx/src/components/login-logout/logIn.jsx b/MySQL_conf_pbx/test1/reactcezenpbx/src/components/login-logout/logIn.jsx index f222f4e..2147351 100644 --- a/MySQL_conf_pbx/test1/reactcezenpbx/src/components/login-logout/logIn.jsx +++ b/MySQL_conf_pbx/test1/reactcezenpbx/src/components/login-logout/logIn.jsx @@ -1,8 +1,21 @@ +import { userLogin } from "../../http_routs/userHttp"; + export default function LogIn() { + function logInFunction(event) { + event.preventDefault(); + + console.log("Log In"); + const formData = new FormData(event.target); + const data = Object.fromEntries(formData.entries()); + + console.log(data); + userLogin(data.user_name, data.password); + } + return (