Merge pull request #178 from makeplane/fix/oauth_keyerror

fix: oauth key error
This commit is contained in:
pablohashescobar 2023-01-17 01:21:44 +05:30 committed by GitHub
commit 1f1472b00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,8 +223,8 @@ class OauthEndpoint(BaseAPIView):
username=username,
email=email,
mobile_number=mobile_number,
first_name=data["first_name"],
last_name=data["last_name"],
first_name=data.get("first_name", ""),
last_name=data.get("last_name", ""),
is_email_verified=email_verified,
is_password_autoset=True,
)