73a9a744d55966096feb1535c94fbad1925d0d91
Flask-Login's UserMixin provides is_active as a read-only property. Attempting to set it as an instance attribute caused a conflict. Solution: - Store active status in private attribute _is_active - Override is_active property to return custom value - Update to_dict() to use _is_active This allows proper Flask-Login integration while maintaining custom active status tracking. Bug found during login testing: AttributeError when calling User.get_by_username() which triggered from_dict() → __init__(). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Description
No description provided
310 KiB
Languages
Python
76.3%
Shell
13.8%
HTML
9%
Dockerfile
0.9%