Skip to content

Conversation

khaledosman
Copy link
Contributor

@khaledosman khaledosman commented May 2, 2025

Users/superusers created via manage.py don't have an org by default, we need to first create an org and add them to it from django admin ui to make the login endpoint work or assign one by default or have a fallback org. ideally if the relationship between users and orgs are mandatory we should validate it on the model & db level.

For now this implements a workaround so the endpoint doesn't completely break when trying to login without having an org assigned to the user, allowing users without orgs to login

@khaledosman khaledosman requested a review from agpituk May 2, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant