Compare commits

..

3 Commits

Author SHA1 Message Date
Daniel (elordenador) 4661bcdffd Merge pull request #62 from dsaub/development
Merge entire work to latest
2026-05-04 13:43:50 +02:00
Daniel (elordenador) 27c06fe0b5 Merge pull request #33 from dsaub/development
Build and Push Docker Image / test (push) Waiting to run
Build and Push Docker Image / docker (push) Blocked by required conditions
Fix mobile header alignment and improve navbar responsiveness
2026-04-20 15:57:04 +02:00
Daniel (elordenador) 44bf6df686 Merge pull request #22 from dsaub/development
Enhance stock management, payment systems, and testing coverage
2026-04-20 12:25:33 +02:00
2 changed files with 2 additions and 7 deletions
+1 -6
View File
@@ -33,11 +33,7 @@ def enviar_correo_confirmacion(id: int):
@shared_task
def enviar_correo_recuperacion(email: str):
usuario: User | None
try:
usuario = User.objects.get(email=email)
except User.DoesNotExist as e:
print("ERROR: User does not exist, Cancelling task!")
usuario = User.objects.get(email=email)
if usuario is not None:
ver_code = VerificationCode.objects.create(
code_mode = VerificationCode.VerificationModes.RESET_PASSWORD,
@@ -57,7 +53,6 @@ def enviar_correo_recuperacion(email: str):
)
send_hemail(email, "Reset de Contraseña", html_content, "Estas reseteando la contraseña...")
else:
# Purchased items should be a list of dictionary, the dictionary must follow this tags: amount, product name, price (each)
+1 -1
View File
@@ -240,7 +240,7 @@ def login(request: HttpRequest):
# Autenticar usuario
user = authenticate(request, username=username, password=password)
if user is None:
if user is None: # Bug de error 500 en caso de fallar la contra
messages.error(request, "Correo electrónico o contraseña incorrectos.")
return render(request, "tienda/login.html")
user = User.objects.get(username=user.username)