Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle missing email in Facebook login #377

Merged

Conversation

dixidroid
Copy link
Contributor

Description

Replaced JSONObject.getString() with JSONObject.optString() to prevent exceptions when the email is not provided. Since the email is not required in the login flow, the change ensures a smooth process by returning an empty string if the email key is absent.

Fixes: Bug Sheet

@volodymyr-chekyrta volodymyr-chekyrta merged commit 1dc72d2 into openedx:develop Oct 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants