Closed (fixed)
Project:
Drupal core
Version:
main
Component:
user.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Feb 2026 at 21:20 UTC
Updated:
2 Apr 2026 at 07:40 UTC
Jump to comment: Most recent
Remove D12 deprecated code from user and basic_auth module
Remove D12 deprecated code from user module
Migration plugins will be removed with #3522601: [meta] Tasks to remove Migrate Drupal UI module / #3522602: [meta] Tasks to remove Migrate Drupal module
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
smustgrave commentedComment #6
smustgrave commentedOkay this one needs serious review, some of it I was not sure about
Comment #8
dcam commentedI left a few comments on the MR. One is just a note. One is an unimportant optimization to consider.
@smustgrave I asked in Slack if you knew why
UserAuthInterfaceisn't deprecated. Turns out that I misread the CR. It says that it will be deprecated, not that it is. There's an open issue for it, #3427298: Deprecate UserAuthInterface. I'll add it as a related issue.Will the deprecated migrate process plugins be removed later? We night need to add that info to the Proposed Resolution so no one wonders.
Setting to Needs Work to consider my comments.
The MR looks really good. Uses of the deprecated classes and functions are removed everywhere. All deprecations are removed, aside from the migrate process plugins which I already mentioned.
Comment #9
dcam commentedComment #10
smustgrave commentedComment #11
smustgrave commentedResponded to the comments best I can. Thanks again for the great reviews!!
Comment #12
smustgrave commentedBasic_auth had 1 simple deprecation that actually broke a test in user, but the test is removed in this MR so I just combined the two.
Comment #13
dcam commentedThe additional change to Basic Auth is pretty simple and in-line with many of the other changes that happened to the User module. There are no other deprecations in Basic Auth that I could find.
My feedback on this one has been addressed. LGTM.
Comment #14
catchOne comment on the MR - looks like we're losing unit test coverage.
Comment #15
smustgrave commentedTried my best at converting it. Super some names and descriptions will need to be tweaked.
Comment #16
dcam commentedI had one comment for the edited test. I'm setting the status to Needs Work for that.
Don't worry too much about the TestAuthenticateWith*Password() tests. I'm positive they're all bad tests. See #3570206: UserAuthTest password test audit.
Comment #17
smustgrave commentedThanks!
Comment #18
dcam commentedI'm sorry @smustgrave. I steered you wrong about those tests. But I think the suggestion I provided will sort it out. Please look it over.
Comment #19
smustgrave commentedFixed up the test. Not sure you meant to do a createStub in a createStub?
Comment #20
dcam commentedUgh. No. I was working exclusively in the MR comment text editor with no highlighting or testing of my own suggestions. I should know better. Thank you for sorting that out.
I think we're good here now.
Comment #21
catchNeeds a rebase.
Comment #22
smustgrave commentedRebased, it was a conflict in a now deleted migration file.
Comment #23
sivaji_ganesh_jojodae commentedNeeds works because of merge conflicts.
Comment #24
smustgrave commentedRebased
Comment #25
smustgrave commentedRebased
Comment #26
catchNeeds another rebase unfortunately.
Comment #27
smustgrave commentedRebased, not sure why but gitlab is showing it unmergable but it applied cleanly
Comment #28
dcam commentedThe same thing happened to one of my issues yesterday.
Comment #31
catchCommitted/pushed to main, thanks!