Open ghost opened 3 years ago
Thanks for your PR! Can you explain what you are trying to achieve here?
$emailId = $settings->emailId->getValue();
$this->signupUser($settings, $providerUserId, $emailId);
How do you want to sign up a user with an email address which is stored in the system settings?
If the key for email in the JSON is something like "corp_email" instead of "email" then LoginOIDC fails because "email" is null. This code permits us to choose the name of the "key" in the returned JSON.
Another idea is to reuse providerId:
$this->signupUser($settings, $providerUserId, $emailId);
Email field mapping