- Issue created by @RoSk0
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 9:08pm 1 May 2023 - last update
almost 2 years ago 101 pass - last update
almost 2 years ago 99 pass, 2 fail - π³πΏNew Zealand RoSk0 Wellington
Bug fix and test only patch for proof.
The last submitted patch, 2: openid_connect-3357538-2-test-only.patch, failed testing. View results β
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- π³πΏNew Zealand ericgsmith
Initial thought - would the same bug would be present on the user form when the current user is an admin and they are editing another user without a linked account? It feels unrelated to the specific form id.
It seems like an incorrect assumption in the module that the form is for the current user.
The comment in the existing code "// Whether the current user is allowed to change its password." is not checking that at all - its checking the currently logged in user.
Could you do something like this?
// Whether the user's password is changeable its password. $account = $form_state->getFormObject()->getEntity(); if (\Drupal::service('openid_connect.openid_connect')->hasSetPasswordAccess($account)) { return; }
- Assigned to RoSk0
- Status changed to Active
almost 2 years ago 10:33pm 1 May 2023 - π³πΏNew Zealand RoSk0 Wellington
True, this needs a bit more work. On it.
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 10:55pm 1 May 2023 - last update
almost 2 years ago 99 pass, 2 fail - last update
almost 2 years ago 101 pass - π³πΏNew Zealand RoSk0 Wellington
Improved patch version.
Thanks for the pointer Eric!
The last submitted patch, 7: openid_connect-3357538-7-test-only.patch, failed testing. View results β
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to RTBC
almost 2 years ago 11:15pm 1 May 2023 - π³πΏNew Zealand ericgsmith
Change and test looks good to me and resolves the issue. Changing to RTBC
- First commit to issue fork.
- Merge request !158Resolve #3357538 "Impossible to set password of new account" β (Merged) created by pfrilling
- πΊπΈUnited States pfrilling Minster, OH
Thanks all for the work on this! I reworked the patch from #7 into a new merge request. I took the moment to expand test coverage too. If someone has a moment to review, I'd appreciate it.
- πΊπΈUnited States pfrilling Minster, OH
Thanks again for the fix. This has been merged to 3.x.
-
pfrilling β
committed 02167151 on 3.x
Issue #3357538 by rosk0, pfrilling, ericgsmith: Impossible to set...
-
pfrilling β
committed 02167151 on 3.x