feat: normalize email login and improve theme handling
CI / backend (push) Failing after 2s
CI / frontend (push) Failing after 27s

Normalize email input by stripping whitespace and converting to lowercase in login endpoint, remove EmailStr validation in favor of plain string type, move dark mode class toggle from Layout to App component for better initialization, add theme toggle button to login page, and set dark mode as default theme when no preference is stored
This commit is contained in:
2026-07-09 12:23:28 +02:00
parent 4fd7e5acbf
commit dea27b5459
6 changed files with 27 additions and 15 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
from datetime import datetime
from typing import Any
from pydantic import BaseModel, ConfigDict, EmailStr, Field
from pydantic import BaseModel, ConfigDict, Field
class OrmModel(BaseModel):
@@ -15,13 +15,13 @@ class TokenPair(BaseModel):
class LoginRequest(BaseModel):
email: EmailStr
email: str
password: str
class UserRead(OrmModel):
id: str
email: EmailStr
email: str
display_name: str
is_active: bool