From be694dfa1eee4edc483dd5e876c115d2d1902d3d Mon Sep 17 00:00:00 2001 From: Francisco Sandoval Date: Sat, 24 Feb 2024 21:50:33 -0300 Subject: [PATCH] se modifica loggin de username a rut del usuario --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index b1c3e3f..039c129 100644 --- a/app/views.py +++ b/app/views.py @@ -9,7 +9,7 @@ import requests def get_auth_token(): auth_url = f'{environ["TRANSPORTE_API"]}/auth/' auth_data = { - "username": environ["TRANSPORTE_USER"], + "rut": environ["TRANSPORTE_USER"], "password": environ["TRANSPORTE_PASS"] } response = requests.post(auth_url, json=auth_data)