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

[#9192] Makes forgot-password link removable #9194

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

vins01-4science
Copy link
Contributor

@vins01-4science vins01-4science commented Nov 10, 2023

References

Description

This PR introduces a new AuthorizationFeature that checks for the forgot-password feature.
The same feature can also check, whenever is provided, that the user is able to update its password.

Instructions for Reviewers

Try to enable the additional configuration:

user.forgot-password = false

inside the authentication-password.cfg and check that it is not shown inside the login-component, in both:

  • dropdown login menu
  • login page

Checklist

  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & integration tests). Exceptions may be made if previously agreed upon.
  • My PR passes Checkstyle validation based on the Code Style Guide.
  • My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
  • My PR passes all tests and includes new/updated Unit or Integration Tests based on the Code Testing Guide.
  • If my PR includes new libraries/dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR modifies REST API endpoints, I've opened a separate REST Contract PR related to this change.
  • If my PR includes new configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

@tdonohue tdonohue added authentication: password Related to default password-based authentication 1 APPROVAL pull request only requires a single approval to merge. authentication: general general authentication issues or new features new feature labels Nov 10, 2023
@tdonohue tdonohue added this to the 8.0 milestone Nov 10, 2023
@tdonohue tdonohue self-requested a review January 11, 2024 15:36
Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

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

@vins01-4science : Thanks! Overall, this looks good. I reported most of my feedback in my frontend review.

That said, I did notice some IT cleanup that can be done in this PR. You don't need to reset configurations back to the original values (they do that automatically). There's also a missing IT that we probably should add. See inline comments below.

@vins01-4science
Copy link
Contributor Author

@vins01-4science : Thanks! Overall, this looks good. I reported most of my feedback in my frontend review.

That said, I did notice some IT cleanup that can be done in this PR. You don't need to reset configurations back to the original values (they do that automatically). There's also a missing IT that we probably should add. See inline comments below.

@tdonohue Thank you for the review.

All the changes have been addressed on this PR.

Let me know if you find something else.

Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

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

👍 Thank you @vins01-4science ! This looks good to me now.

I will note though that we MUST add documentation for this new user.forgot-password configuration to the DSpace 8.x docs. It probably should just be added next to user.registration here: https://wiki.lyrasis.org/display/DSDOC8x/Authentication+Plugins#AuthenticationPlugins-ConfiguringAuthenticationbyPassword

I'll get this merged, but will add a needs documentation label until the docs have been added. If you can find time to add them, please link them here & we can remove that label.

@tdonohue tdonohue merged commit 3ced658 into DSpace:main Feb 13, 2024
22 checks passed
@tdonohue tdonohue added the needs documentation PR is missing documentation. All new features and config changes require documentation. label Feb 13, 2024
@vins01-4science
Copy link
Contributor Author

👍 Thank you @vins01-4science ! This looks good to me now.

I will note though that we MUST add documentation for this new user.forgot-password configuration to the DSpace 8.x docs. It probably should just be added next to user.registration here: https://wiki.lyrasis.org/display/DSDOC8x/Authentication+Plugins#AuthenticationPlugins-ConfiguringAuthenticationbyPassword

I'll get this merged, but will add a needs documentation label until the docs have been added. If you can find time to add them, please link them here & we can remove that label.

@tdonohue Thank you!

I modified that page, by placing the new property right after the user.registration one, just like you told me.
Let me know if we need to document it somewhere else.

@tdonohue
Copy link
Member

Thanks @vins01-4science ! The documentation looks good to me. https://wiki.lyrasis.org/display/DSDOC8x/Authentication+Plugins#AuthenticationPlugins-ConfiguringAuthenticationbyPassword

I'll remove the needs documentation label.

@tdonohue tdonohue removed the needs documentation PR is missing documentation. All new features and config changes require documentation. label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge. authentication: general general authentication issues or new features authentication: password Related to default password-based authentication new feature
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Make forgot-password link removable
2 participants