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,