From 833818f17d795586cc278e3025df8266c024404f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Gierwia=C5=82o?= Date: Thu, 13 Nov 2025 19:03:39 +0100 Subject: [PATCH] fix: include emailVerified field in /api/users/me endpoint The verification banner was reappearing after login/refresh because the /api/users/me endpoint was not returning the emailVerified field. This ensures the frontend always has access to the current email verification status when loading user data. --- backend/src/routes/users.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/routes/users.js b/backend/src/routes/users.js index dcc6fa3..9cd9759 100644 --- a/backend/src/routes/users.js +++ b/backend/src/routes/users.js @@ -14,6 +14,7 @@ router.get('/me', authenticate, async (req, res, next) => { id: true, username: true, email: true, + emailVerified: true, avatar: true, createdAt: true, updatedAt: true,