strangerstudios / pmpro-sponsored-members

Generate a discount code for a main account holder to distribute to sponsored members.
https://www.paidmembershipspro.com/add-ons/pmpro-sponsored-members/
15 stars 27 forks source link

'children_hide_email' not working as intended. #107

Closed andrewlimaza closed 1 year ago

andrewlimaza commented 2 years ago

Describe the bug The attribute children_hide_email when set to true, still shows the child account email field and doesn't hide it. This needs more thought and discussion on how to handle this.

This is good for cases where child accounts don't need their own email address, but makes password resets more difficult too.

A temporary workaround is to manually enter a fake email address when creating the child account, such as parent+childname@yourdomain.co.

To Reproduce Steps to reproduce the behavior:

  1. Set children_hide_email to true with max_seats, seat_cost and sponsored_accounts_at_checkout.
  2. Go to checkout for parent level, enter a seat amount and see error.

Screenshots

Screen Shot 2022-01-11 at 13 33 36

Expected behavior This needs a bit more thought, but possible auto-generating an email address to be used from username + parent email address during checkout? (parent+childusername).

Isolating the problem (mark completed items with an [x]):