From fb466a71b80153ba94b08ffd1a9e00e031bcd9c2 Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro Date: Fri, 8 May 2026 08:13:44 -0300 Subject: [PATCH] fix: login --- Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index bfbffe1..f215675 100644 --- a/Program.cs +++ b/Program.cs @@ -163,10 +163,11 @@ if (!string.IsNullOrEmpty(mongoConnectionString)) { Log.Information("Configuring DataProtection to persist keys in MongoDB for Swarm compatibility"); + var dpDbName = MongoUrl.Create(mongoConnectionString).DatabaseName; builder.Services.AddDataProtection() .SetApplicationName("QRRapido") .PersistKeysToMongoDb( - () => new MongoClient(mongoConnectionString).GetDatabase("QRRapidoDB"), + () => new MongoClient(mongoConnectionString).GetDatabase(dpDbName), "DataProtectionKeys"); } else