feat(adminfront): add user profile dropdown and enhance session sync

This commit is contained in:
chan committed 2026-03-03 12:56:57 +09:00
1 parent 86ef9c6f60
commit 1c3985ce19
6 files changed
+146 -26

No files matched your search

+1 -1
View File
@@ -3974,7 +3974,7 @@ func (h *AuthHandler) resolveCurrentProfile(c *fiber.Ctx) (*domain.UserProfileRe
"email", profile.Email, "oldRole", profile.Role, "newRole", mockRole)
profile.Role = mockRole
}
} else if isDev && mockRole != "" {
} else if isDev && mockRole != "" && token == "" && cookie == "" {
slog.Info("🔑 [AUTH_DEBUG] No real session found, using full Mock Auth", "role", mockRole)
profile = &domain.UserProfileResponse{
ID: "00000000-0000-0000-0000-000000000000",