-
Notifications
You must be signed in to change notification settings - Fork 4
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
[SD-375] bypass tfa during pass reset use prlp #532
[SD-375] bypass tfa during pass reset use prlp #532
Conversation
e9e8c64
to
6a6736c
Compare
--------- Co-authored-by: Md Nadim Hossain <[email protected]> --------- Co-authored-by: Md Nadim Hossain <[email protected]>
0ca100b
to
9be573a
Compare
Why does this still have circleCI builds in it? Should the project be disconnected from Circle? Also, I don't think the failing GHA items ever worked? |
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.
hey @MdNadimHossain
thanks for the changes
- If possible, please use Dependency Injection to inject
prlpController
instead of directly instantiating it. This approach enhances modularity and testability. $request ? $request->getSession()->set('pass_reset_' . $uid, $token) : $_SESSION['pass_reset_' . $uid] = $token;
can be simplified to$request->getSession()->set('pass_reset_' . $uid, $token);
. This change aligns with Drupal’s session handling practices, ensuring session consistency and better compatibility with symfony's request stack- If convenient, please replace
$request = \Drupal::request()
with$this->requestStack->getCurrentRequest()
. Using the injectedRequestStack
service follows Drupal’s dependency injection practices and improves maintainability
My comments don’t prevent this PR from being moved to testing. |
hi @vincent-gao I have added the other two changes you have requested. Please have a look now. thanks :) |
@anthony-malkoun yes and needs to be cleaned up and also from the submodules. I will do it in a separate PR. |
a9f0203
to
28dcc4a
Compare
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.
lint! @MdNadimHossain 😃
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.
This looks fine to me. Thanks for cleaning up the other stuff.
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.
Review changes approved.
28dcc4a
to
cda6f10
Compare
Jira
https://digital-vic.atlassian.net/browse/SD-375
https://digital-vic.atlassian.net/browse/SD-421
Problem/Motivation
The password reset workflow in our SDP projects, managed by the PRLP module, is being deprioritized due to a route subscriber defined in the TFA module. This conflict is disrupting the current password reset process for SDP projects.
Fix
Related PRs
Screenshots
TODO