Creating a D8 version of #2214225: Allow username on the registration form to have the username on the registration form.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | 2927109-23.patch | 8.14 KB | shabana.navas |
| #22 | 2927109-22.patch | 7.95 KB | edysmp |
| #21 | 2927109-21.patch | 7.95 KB | edysmp |
| #20 | 2927109-20.patch | 7.66 KB | claudiu.cristea |
Comments
Comment #2
joekersComment #4
claudiu.cristeaThat patch is corrupted.
Comment #5
claudiu.cristeaWorks well. Just some nits:
In Yaml syntax TRUE/FALSE should be lowercased. Please change also the line above if we're always touch the file.
Maybe "Allow also username login" or "Allow login also with username"?
s/ticked/checked
Comment #6
joekersOnly just seen this! Thanks for the feedback I'll update the patch ASAP.
Comment #7
joekers1. Updated.
2. Updated with "Allow login also with username".
3. I wasn't sure what you meant by "s/ticked/checked" so I updated "ticked" to "checked".
Hopefully this patch isn't corrupt too.
Comment #8
claudiu.cristeaGreat. Thank you!
Comment #9
andypostGood idea but it needs test coverage before getting in
Comment #10
pfrenssenRerolled against latest HEAD.
Comment #11
pfrenssenRerolled against latest HEAD.
Comment #12
andypostIt needs upgrade hook as well
Comment #13
claudiu.cristea@andypost, here are the update path & tests.
Comment #14
claudiu.cristeaThe failure was cause because Drupal 8.8.x ran on PHP 5. This not possible anymore.
Comment #15
gregglesI've adjusted testing for the project to use PHP 7 for the future. Thanks for your help, claudiu.cristea!
Comment #16
gregglesHere's a reroll as the change to config/schema/email_registration.schema.yml didn't apply.
Also I'm not sure about this text:
Shouldn't the label be "Allow registration also with username." ?
Comment #17
andypostYep it needs better naming as well as update hook should become
hook_post_update_NAME()better to use hook_post_update_NAME() for config updates
the config name is confusing, maybe kind of "alter_user_form"
Comment #18
gregglesThanks for the feedback, andypost!
I researched hook_post_update on the doc page and this stackexchange post. It seems config/content entities are best to update via hook_post_update_NAME in part because of the order it runs and how to run it.
Comment #19
andypostThe great side of post update hooks is less collision in patches comparing to hook_update_n
Comment #20
claudiu.cristeaand
Finally I opted for this name:
Moved the update path to post update.
Comment #21
edysmpRerolled against latest HEAD.
Comment #22
edysmpFix syntax error in rerolled.
Comment #23
shabana.navas commentedRe-rolling patch as it wasn't applying to latest version.
Comment #24
rymcveighI know this is an older issue but it seems to be in a resolved state at this point. With the current 8.x release, to allow for anonymous users to edit/set their user name you just need to give the anonymous user permission to "change own username". Can others confirm that this issue is resolved?
Comment #25
gregglesThe patch here still applies to 8.x-1.x branch tip, so it has not been merged. It would be great if anyone interested in this feature could articulate how this is different than what is possible in core.
Comment #26
rymcveighIt seems this is needed if you want the Username field to be empty when the user first visits the registration form. I can confirm that the most recent patch posted in #23 works with the current development version of this module.
Comment #28
gregglesThanks, Ryan for that feedback and everyone along the way for your work on this issue!
Now fixed.