From 79ac140ddd03fec4025dc2e861f893b147a27488 Mon Sep 17 00:00:00 2001 From: jain Date: Fri, 30 Jun 2023 16:22:41 +0530 Subject: [PATCH] jira-3 google login --- account/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account/views.py b/account/views.py index 4335b67..93cf17f 100644 --- a/account/views.py +++ b/account/views.py @@ -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