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 anonymous user #5739

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Fix anonymous user #5739

merged 2 commits into from
Jul 18, 2023

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

An anonymous user is one that has no way to recover their account/session. The only way for someone to not be able to log in again is if they have no email AND phone number.

This PR also updates the OAuth2 flow to only update email and name if they're empty.

Test Plan

Automated tests should pass

Related PRs and Issues

None

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

The logic before was incorrect. Really, email and name should only be
set if they're empty.
@stnguyen90 stnguyen90 marked this pull request as ready for review June 23, 2023 20:51
@stnguyen90 stnguyen90 added this to the 1.4.0 milestone Jul 5, 2023
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.

None yet

2 participants