From af6e93067fd003bbc2144b092b50395ff74855e1 Mon Sep 17 00:00:00 2001 From: Thomas Stallinger Date: Mon, 10 Aug 2026 13:53:33 +0200 Subject: [PATCH] fix: E-Mail wird als bytes statt str angezeigt (b'...' in der Navbar) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _row_to_user() dekodierte bislang nur hashed_password von bytes zu str, obwohl psycopg dieselbe Eigenart (TEXT-Spalte kommt teils als bytes zurück) auch bei email zeigt. Sichtbar z.B. im Header als b'name@domain.tld' statt name@domain.tld. Co-Authored-By: Claude Sonnet 5 --- auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth.py b/auth.py index f7be8cf..f604ba1 100644 --- a/auth.py +++ b/auth.py @@ -44,6 +44,8 @@ def _row_to_user(row) -> User: # psycopg liefert TEXT-Spalten hier teils als bytes zurück, nicht als str. if isinstance(hashed_password, bytes): hashed_password = hashed_password.decode("utf-8") + if isinstance(email, bytes): + email = email.decode("utf-8") return User( id=user_id,