This commit is contained in:
Marces
2025-02-28 21:17:26 +01:00
parent 1ac171a4d7
commit 30bffad660
10 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ function Login({ setIsLoggedIn }) {
const handleLogin = async (e) => {
e.preventDefault();
try {
const res = await axios.post('https://congenial-waddle-9w9749vg9q9cr49-5000.app.github.dev/login', { username, password });
const res = await axios.post('http://localhost:5000/login', { username, password });
setMessage(res.data.message);
if (res.data.success) {
setIsLoggedIn(true);