From cadaddca1f2f9e74bb1fdc8e651111e01adbcbe3 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 24 Feb 2026 20:15:42 +0100 Subject: [PATCH] fix --- Caddyfile | 2 +- .../Registration.API/Controllers/ParticipantController.cs | 2 +- .../Registration.API/Controllers/VolunteerController.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Caddyfile b/Caddyfile index f85c628..9103411 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,4 +1,4 @@ -lan.vbytes.se { +anmalan.vbytes.se { reverse_proxy localhost:5000 log { diff --git a/src/Registration/Registration.API/Controllers/ParticipantController.cs b/src/Registration/Registration.API/Controllers/ParticipantController.cs index cc27b87..a2ce064 100644 --- a/src/Registration/Registration.API/Controllers/ParticipantController.cs +++ b/src/Registration/Registration.API/Controllers/ParticipantController.cs @@ -37,7 +37,7 @@ public class ParticipantController(IVbytesParticipantRelayService relayService) var result = await _relayService.RegisterParticipantAsync(participant, cancellationToken); - if (result.Success) + if (result.Success && !result.Message.Contains("401")) { return Ok(); } diff --git a/src/Registration/Registration.API/Controllers/VolunteerController.cs b/src/Registration/Registration.API/Controllers/VolunteerController.cs index 5d719c8..c19d848 100644 --- a/src/Registration/Registration.API/Controllers/VolunteerController.cs +++ b/src/Registration/Registration.API/Controllers/VolunteerController.cs @@ -44,7 +44,7 @@ public class VolunteerController(IVbytesVolunteerRelayService relayService) : Co var result = await _relayService.RegisterVolunteerAsync(volunteer, cancellationToken); - if (result.Success) + if (result.Success && !result.Message.Contains("401")) { return Ok(); }