See #2861178-7: Optionally allow login and registration with (only) e-mail, the idea is to split up the validation and user login/registration creating, so that it's easy to customize certain parts of it without having to copy 80+ lines of code.
PR coming up a in a minute.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | commerce-user-login-split-2870783-4.patch | 11.24 KB | berdir |
| #3 | commerce-user-login-split-2870783.patch | 12.17 KB | berdir |
Comments
Comment #2
berdirhttps://github.com/drupalcommerce/commerce/pull/722
Comment #3
berdirReroll, just as a patch for now. I can update the MR if including this is has a chance to get in.
Had a few tricky conflicts as I'm moving whole chunks around, but I hope I got all the changes.
Here's an example subclassed method that shows what we did. I saw that apparently there's support for the register form display. It looks like one thing that might no longer be required is the extra fields we added for terms & conditions as well as the region selection, but we also use the mail as username, so I assume that still needs to be there (which is it started in our project and then more things were added.
Comment #4
berdirOh, looks like that register form stuff isn't released yet, so here's a reroll against 8.x-2.11 for now.