Skip to content

get_current_user Uses Depends() Default but Is Also Called Directly #14

Description

@ayahaustine

File: internal_admin/auth/routes.py

get_current_user has db: Session = Depends(get_session) as a parameter default, but in site.py it is called as a plain function: get_current_user(request, self.config, db_session). Mixing DI-aware signatures with manual calls is confusing and error-prone.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions