-
Notifications
You must be signed in to change notification settings - Fork 437
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
[#2622] Makes forgot-password link removable #2624
Conversation
The e2e tests are failing due to the changes introduced in the |
Hi @vins01-4science, |
@vins01-4science : Could you resolve the merge conflicts in this PR to make it easier to review? |
Yes, sorry I forgot to address your comment. Thank you. |
# Conflicts: # src/app/core/data/feature-authorization/feature-id.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vins01-4science : Gave this a test & review today. Overall it looks good.
I've also verified that the e2e test failure in this PR only occurs because the backend PR isn't merged yet. Once the backend PR & this one are merged, this e2e test should succeed (I've verified it succeeds for me locally with both the frontend & backend PRs installed).
All that said, I noticed a few small issues that would be nice to fix if possible:
- Even when
user.forgot-password = false
is set on the backend, I can still access the Forgot Password page by typing in the "/forgot" path in my browser address bar (e.g.http://localhost:4000/forgot
) The good news is that when I submit it, I do receive an expected error. But, ideally, I should not be allow to access this page. Can we place some sort of "guard' in front of it that makes it inaccessible when disabled? - Although it appears to not be related to this PR... I'm noticing that
user.registration = false
no longer works properly (at least viayarn build:prod; yarn serve:ssr
). The "Click here to register" link always appears in the login dropdown even if that config is set to false. (NOTE: This appears to also be a bug onmain
. But, if you find time to fix it in this PR, feel free. Otherwise, I can log it as a separate bug ticket and look for a volunteer.)
@tdonohue Thank you, everything have been addressed. For the The guard issue has been addressed, so let me know if you find something else! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @vins01-4science ! Re-reviewed and retested today. All prior issues are fixed/addressed. I'll merge this after the backend PR is merged so that the e2e tests will succeed once merged.
I also verified that the user.registration
configuration is working properly. I must have made a mistake in my earlier testing, as I can no longer reproduce that issue either.
(cherry picked from commit 0e4151e)
[DSC-1899] Updated bitbucket-pipelines.yml with prod Approved-by: Vincenzo Mecca
References
Description
Introduces a new check to show the
forgot-password
link that uses the relatedAuthorizationFeature
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:
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.