fix(third-party-auth): Need to account for additional required demographic fields for BigCommerce provider. #179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This relates to social-auth change here.
CUCWD/social-auth-backend-bigcommerce#5
When creating an account with third-party auth provider BigCommerce on EducateWorkforce it appears that new required fields set by platform setting REGISTRATION_EXTRA_FIELDS were causing the automatic account creation using
Skip registration form
set toTrue
to fail.This fix makes sure that all required fields get a default value of
prefer-not-to-say
or we override therequired
field tooptional
using third-party providerOther settings
below to ignore the required field and provide a null value. In this case theyear_of_birth
field didn't have aprefer-not-to-say
value by default since it was an Integer field.Third-Party Auth Provider > Option settings
We could have optionally updated the BigCommerce registration account creation fields to account for these
required
fields that we are defaulting toprefer-not-to-say
value, however, we'd have to get with the BigCommerce storefront administrator to make this change occur. For now we're going to keep this hidden as a requirement.BigCommerce Article – Adding and Editing Fields in the Account Signup Form
https://support.bigcommerce.com/s/article/Editing-Form-Fields?language=en_US