Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Error on Login for newly created admin user without assigned projects #411

Open
awojtczyk opened this issue Dec 27, 2024 · 0 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@awojtczyk
Copy link

Bug Description
Newly created admin users encounter a 500 error during login if they do not have any projects assigned. The issue appears to be linked to the HasProjectMiddleware, which fails to handle cases where no projects are associated with the user.

Expected Behavior
Admin users should be able to log in even if they have no projects assigned.

Additional Context
Assigning the 'default' project to the newly created admin user as the first user resolves the issue. Adjusting the HasProjectMiddleware to assign or handle 'default' projects automatically might fix the problem.

@awojtczyk awojtczyk added the bug Something isn't working label Dec 27, 2024
@awojtczyk awojtczyk changed the title 500 Error on Login for Newly Created Admin User Without Assigned Projects 500 Error on Login for newly created admin user without assigned projects Dec 27, 2024
@saeedvaziry saeedvaziry added this to Vito Dec 27, 2024
@saeedvaziry saeedvaziry moved this to Todo in Vito Dec 27, 2024
@saeedvaziry saeedvaziry added this to the v2 milestone Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants