mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-03-10 19:51:46 +00:00
jira-3 google login
This commit is contained in:
@ -74,7 +74,9 @@ class GoogleLoginMixin:
|
||||
user_obj = User.objects.create(username=email,
|
||||
email=email)
|
||||
if str(user_type) == '1':
|
||||
Junior.objects.create(auth=user_obj)
|
||||
Junior.objects.create(auth=user_obj, is_verified=True)
|
||||
if str(user_type) == '2':
|
||||
Guardian.objects.create(user=user_obj, is_verified=True)
|
||||
|
||||
|
||||
# Return a JSON response with the user's email and name
|
||||
|
||||
Reference in New Issue
Block a user