π₯π₯π₯ 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
chore: remove set password option in space app (#4912)
Nikhil716a35779c7a
diff --git a/apiserver/plane/authentication/views/space/magic.py b/apiserver/plane/authentication/views/space/magic.pyindex 0e859d44db..52a1d04220 100644--- a/apiserver/plane/authentication/views/space/magic.py+++ b/apiserver/plane/authentication/views/space/magic.py@@ -20,7 +20,7 @@ from plane.authentication.utils.login import user_loginfrom plane.bgtasks.magic_link_code_task import magic_linkfrom plane.license.models import Instancefrom plane.authentication.utils.host import base_host-from plane.db.models import User, Profile+from plane.db.models import Userfrom plane.authentication.adapter.error import (AuthenticationException,AUTHENTICATION_ERROR_CODES,@@ -121,12 +121,7 @@ class MagicSignInSpaceEndpoint(View):# Login the user and record his device infouser_login(request=request, user=user, is_space=True)# redirect to referer path- profile = Profile.objects.get(user=user)- if user.is_password_autoset and profile.is_onboarded:- path = "accounts/set-password"- else:- # Get the redirection path- path = str(next_path) if next_path else ""+ path = str(next_path) if next_path else ""url = f"{base_host(request=request, is_space=True)}{path}"return HttpResponseRedirect(url)