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.
This commit is contained in:
Radosław Gierwiało
2025-11-13 19:03:39 +01:00
parent 27ee0ae365
commit 833818f17d

View File

@@ -14,6 +14,7 @@ router.get('/me', authenticate, async (req, res, next) => {
id: true, id: true,
username: true, username: true,
email: true, email: true,
emailVerified: true,
avatar: true, avatar: true,
createdAt: true, createdAt: true,
updatedAt: true, updatedAt: true,