Switched from Dockmon to Beszel

This commit is contained in:
2025-10-31 17:13:00 +01:00
parent cc6454cef9
commit f4a4142799
75 changed files with 24313 additions and 122 deletions

View File

@@ -0,0 +1,18 @@
"""
Authentication Models for DockMon
Pydantic models for authentication requests and responses
"""
from pydantic import BaseModel, Field
class LoginRequest(BaseModel):
"""Login request model with validation"""
username: str = Field(..., min_length=1, max_length=50)
password: str = Field(..., min_length=1, max_length=100)
class ChangePasswordRequest(BaseModel):
"""Change password request model"""
current_password: str = Field(..., min_length=1, max_length=100)
new_password: str = Field(..., min_length=8, max_length=100) # Minimum 8 characters for security