FINERACT-2006: Forgot password on login page#5369
Open
airajena wants to merge 1 commit intoapache:developfrom
Open
FINERACT-2006: Forgot password on login page#5369airajena wants to merge 1 commit intoapache:developfrom
airajena wants to merge 1 commit intoapache:developfrom
Conversation
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.
Description
Implemented the "Forgot Password" functionality to allow users to reset their forgotten passwords via email. This feature introduces a new public API endpoint that verifies the user's email, generates a temporary password, and emails it to them.
Changes
POST /api/v1/password/forgotwhich accepts an email address in the request body.SecurityConfigto permit unauthenticated access to this endpoint.temporary_password_expiry_timecolumn to them_appusertable (via Liquibase migration0209_add_forgot_password.xml).AppUserentity to handle temporary password expiry.AppUserRepository.findActiveUserByEmailto lookup users.ForgotPasswordServiceand its implementationForgotPasswordServiceImpl.GmailBackedPlatformEmailServiceto make strict SSL/TLS settings conditional. This allows the service to support standard SMTP servers (like Mailhog) for easier local testing and development, while still enforcing strict security when connecting to Gmail.Checklist
Please confirm these details:
developbranch./gradlew spotlessApply)Testing
200 OKon success.