Conversation
…lización de configuración de correo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ Pull Request: Implementación de envío de correo para restablecimiento de contraseña
Historia de Usuario:
Como estudiante de la plataforma,
quiero ingresar mi correo electrónico e ingresar la nueva contraseña,
para poder reestablecer mi contraseña.
✔️ Criterios de aceptación cumplidos
El frontend del correo es responsive
Se creó una plantilla HTML adaptable a dispositivos móviles y pantallas de todos los tamaños, asegurando compatibilidad con los principales clientes de correo.
El correo se envía inmediatamente después del registro (máx. 1 minuto)
El auth-ms genera un código de confirmación y realiza un request gRPC al notifications-ms, que envía el correo de forma inmediata. Se validó que el tiempo total de respuesta está dentro del límite esperado.
El correo tiene branding reconocible
La plantilla implementada incluye los colores institucionales de UGuimar y estilo visual consistente con la identidad de la plataforma.
🧪 Pruebas
Se agrego un usuario nuevo para la prueba de correo

Se envio mediante el microservicio auth-ms

"http://localhost:8081/api/auth/password-reset/request"
Se entrego correctamente el correo con el codigo extraido de auth en segundos

Para levantar el microservicio de notifications-ms se necesita colocar las siguientes lineas de codigo en el docker-compuse.yml
notification-service:
build:
context: ./notifications-ms
dockerfile: Dockerfile
container_name: notification-service
ports:
- "8082:8082"
- "9092:9092"
environment:
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE:-dev}
- CONFIG_SERVER_HOST=config-server:8888
- CONFIG_SERVER_PASSWORD=${CONFIG_SERVER_PASSWORD:-configpassword}
- EUREKA_URI=http://service-discovery:8761/eureka/
- MAIL_HOST=${MAIL_HOST}
- MAIL_PORT=${MAIL_PORT}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_AUTH=true
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=true
- SPRING_MAIL_PROPERTIES_MAIL_TRANSPORT_PROTOCOL=smtp
depends_on:
service-discovery:
condition: service_healthy
networks:
- uguimar-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8082/actuator/health" ]
interval: 20s
timeout: 10s
retries: 5
start_period: 60s
Además se tendra que agregar estos valores en el .env principal de proyecto:
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=tu-correo@gmail.com
MAIL_PASSWORD=tu-contraseña