modified .env and styles

This commit is contained in:
2025-09-10 19:23:18 -04:00
parent e51d284fb4
commit 0c5abba89b
3 changed files with 34 additions and 4 deletions
+4 -3
View File
@@ -12,7 +12,7 @@ function Login() {
e.preventDefault();
try {
const response = await axios.post("http://localhost:5000/user", {
const response = await axios.post(`${process.env.NEXT_PUBLIC_API_URL}/user`, {
usuario: user,
password: password,
});
@@ -64,8 +64,8 @@ function Login() {
type='submit'
>Iniciar sesión
</button>
</form>
{message &&
{message &&
<div
className={`messageBox ${message.includes('exitoso') ? 'success' : 'error'}`}
style={{ marginTop: '10px' }}
@@ -73,6 +73,7 @@ function Login() {
{message}
</div>
}
</form>
</section>
);
}