VNOI-Admin / OJ

A modern open-source online judge and contest platform system.
https://oj.vnoi.info
GNU Affero General Public License v3.0
153 stars 67 forks source link

Add first_name, last_name of user as protected fields when login by oauth2 #358

Closed trantuyet closed 9 months ago

trantuyet commented 9 months ago

Description

Lib social_core will disable update on fields first_name and last_name defined in settings.SOCIAL_AUTH_PROTECTED_USER_FIELDS.

What

What does the PR do?

Why

Why this PR is needed?

Fixes # (issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.