Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add password recovery #202

Merged
merged 5 commits into from
Nov 8, 2024
Merged

Add password recovery #202

merged 5 commits into from
Nov 8, 2024

Conversation

th0th
Copy link
Owner

@th0th th0th commented Nov 7, 2024

This pull request introduces several key changes to the backend of the PoeticMetric application, focusing on adding email service functionality, particularly for password recovery, and updating dependencies and configurations.

Email Service and Password Recovery:

  • Added EmailService interface and relevant types for sending emails, including EmailServiceSendParams and EmailServiceTemplatePasswordRecoveryParams. (backend/pkg/poeticmetric/email_service.go)
  • Integrated email service into the authentication service to send password recovery emails. (backend/pkg/service/authentication/main.go)
  • Added a new endpoint to send user password recovery emails. (backend/pkg/restapi/handler/authentication/main.go)

Configuration and Dependency Updates:

  • Updated .golangci.yaml to re-enable previously removed linters and add new ones. (backend/.golangci.yaml)
  • Updated go.mod to add and remove various dependencies. (backend/go.mod) [1] [2] [3] [4] [5]

Documentation Updates:

  • Updated Swagger documentation to include the new password recovery endpoint. (backend/pkg/restapi/docs/docs.go, backend/pkg/restapi/docs/swagger.json, backend/pkg/restapi/docs/swagger.yaml) [1] [2] [3]

Miscellaneous:

  • Renamed pointer.go to helpers.go and added a StringSlice function. (backend/pkg/poeticmetric/helpers.go)
  • Added SMTP configuration to EnvService for email functionality. (backend/pkg/poeticmetric/env_service.go) [1] [2]

These changes collectively enhance the application's ability to handle password recovery through email, improve code maintainability, and ensure up-to-date dependencies and configurations.

@th0th th0th self-assigned this Nov 7, 2024
@th0th th0th requested a review from iibarbari November 7, 2024 21:49
Copy link
Collaborator

@iibarbari iibarbari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍇

@th0th th0th merged commit 7271ee1 into reloaded Nov 8, 2024
3 checks passed
@th0th th0th deleted the password-recovery branch November 8, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants