Skip to content

fix: Handle missing email in Facebook login - #377

Merged
volodymyr-chekyrta merged 2 commits into
openedx:developfrom
touchapp:fix/facebook_email_issue
Oct 7, 2024
Merged

fix: Handle missing email in Facebook login#377
volodymyr-chekyrta merged 2 commits into
openedx:developfrom
touchapp:fix/facebook_email_issue

Conversation

@dixidroid

Copy link
Copy Markdown
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

dixidroid and others added 2 commits October 4, 2024 08:54
@volodymyr-chekyrta
volodymyr-chekyrta merged commit 1dc72d2 into openedx:develop Oct 7, 2024
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