1
0
forked from baron/baron-sso

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

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

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",