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

TASK-464 - Login - Forgot Password option #2439

Merged
merged 13 commits into from May 14, 2024
Merged

Conversation

juanfeSanahuja
Copy link
Member

@halender
Copy link
Contributor

halender commented May 6, 2024

Task linked: TASK-464 Login - Forgot Password option

@juanfeSanahuja juanfeSanahuja requested a review from pfurio May 7, 2024 14:28
@juanfeSanahuja juanfeSanahuja requested a review from pfurio May 7, 2024 15:01
@@ -133,7 +133,8 @@ public OpenCGAResult resetPassword(String userId) throws CatalogException {
String mailHost = this.emailConfig.getHost();
String mailPort = this.emailConfig.getPort();
try {
MailUtils.sendResetPasswordMail(email, newPassword, mailUser, mailPassword, mailHost, mailPort);
MailUtils.sendResetPasswordMail(email, newPassword, mailUser, mailPassword, mailHost, mailPort,
"true", ((User) user.getResults().get(0)).getId());
Copy link
Member

Choose a reason for hiding this comment

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

This hardcoded ssl = "true" should be in the configuration file. And should be a boolean instead of String.

Copy link
Member Author

Choose a reason for hiding this comment

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

All the variables that are set in the code and are not in the configuration are necessary for the current version to work..... The objective of this task was to change the body of the email message. In the tests I discovered that it did not work with the current configuration, I have added those properties to make it work, if you want to bring that to the configuration it must be done in another requirement, which must be planned for the corresponding version because this must be released now.

pfurio
pfurio previously approved these changes May 9, 2024
@juanfeSanahuja juanfeSanahuja merged commit ff2b0c8 into release-2.12.x May 14, 2024
1 check passed
@juanfeSanahuja juanfeSanahuja deleted the TASK-464 branch May 14, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants