initial: bootstrap from BukidBountyApp base
This commit is contained in:
35
ai-docs/files/LoginController.md
Normal file
35
ai-docs/files/LoginController.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# LoginController.php
|
||||
|
||||
## Purpose
|
||||
Handles user authentication including login, session extension, and logout operations.
|
||||
|
||||
## Key Components
|
||||
- `LoginController` class
|
||||
- `authenticate()` method
|
||||
- `extendcurrentSession()` method
|
||||
|
||||
## Exported Interfaces
|
||||
- `authenticate()` - Authenticate user via JWT
|
||||
- `extendcurrentSession()` - Extend current session lifetime
|
||||
|
||||
## Inputs
|
||||
- `$request` - HTTP request with username/password
|
||||
- Session data for token validation
|
||||
|
||||
## Outputs
|
||||
- Redirect to home page on success
|
||||
- JSON response on failure
|
||||
- Session creation on successful authentication
|
||||
|
||||
## Side Effects
|
||||
- Creates JWT-based session
|
||||
- Sets session cookie
|
||||
|
||||
## Dependencies
|
||||
- `Hypervel\Support\Facades\Auth`
|
||||
- `App\Models\User`
|
||||
|
||||
## Notes
|
||||
- Uses JWT authentication via Hypervel framework
|
||||
- Validates credentials against database
|
||||
- Supports both web and API authentication
|
||||
Reference in New Issue
Block a user