auth_views module
Authentication module for the medical system Handles login/logout without CSRF for the development environment
- auth_views.login_view(request)[source]
Authentication endpoint for the medical system.
Handles login for medical users with CORS support for the development environment. Accepts credentials in JSON format and returns user information.
- Parameters:
request (HttpRequest) – HTTP request object containing username and password in JSON
- Returns:
Response JSON with user data or error
- Return type:
JsonResponse
- Raises:
JSONDecodeError – If the request body is not valid JSON