π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB - 1998] fix: profile creation on user signup (#5168)
Nikhil065c9779bbec
diff --git a/apiserver/plane/authentication/utils/redirection_path.py b/apiserver/plane/authentication/utils/redirection_path.pyindex 12de25cc2e..62cc1f0194 100644--- a/apiserver/plane/authentication/utils/redirection_path.py+++ b/apiserver/plane/authentication/utils/redirection_path.py@@ -3,7 +3,7 @@ from plane.db.models import Profile, Workspace, WorkspaceMemberInvitedef get_redirection_path(user):# Handle redirections- profile = Profile.objects.get(user=user)+ profile, _ = Profile.objects.get_or_create(user=user)# Redirect to onboarding if the user is not onboarded yetif not profile.is_onboarded:diff --git a/apiserver/plane/authentication/views/app/magic.py b/apiserver/plane/authentication/views/app/magic.pyindex 8b2d1accda..12f8a0c0b9 100644--- a/apiserver/plane/authentication/views/app/magic.py+++ b/apiserver/plane/authentication/views/app/magic.py@@ -120,7 +120,7 @@ class MagicSignInEndpoint(View):callback=post_user_auth_workflow,)user = provider.authenticate()- profile = Profile.objects.get(user=user)+ profile, _ = Profile.objects.get_or_create(user=user)# Login the user and record his device infouser_login(request=request, user=user, is_app=True)if user.is_password_autoset and profile.is_onboarded: