fixed cookie domains
This commit is contained in:
parent
4af6da6758
commit
d23b74cfb8
|
@ -5,7 +5,6 @@ using System.Text;
|
|||
using System.Text.Json;
|
||||
using Fido2NetLib;
|
||||
using Fido2NetLib.Objects;
|
||||
using Microsoft.AspNetCore.Diagnostics;
|
||||
using Microsoft.Data.Sqlite;
|
||||
using SQLitePCL;
|
||||
|
||||
|
@ -93,7 +92,7 @@ public static class Program {
|
|||
SameSite = SameSiteMode.None,
|
||||
MaxAge = TimeSpan.FromSeconds(s_lifetime),
|
||||
};
|
||||
if (string.IsNullOrEmpty(s_domain)) {
|
||||
if (!string.IsNullOrEmpty(s_domain)) {
|
||||
cookieOpts.Domain = s_domain;
|
||||
}
|
||||
|
||||
|
@ -158,7 +157,7 @@ public static class Program {
|
|||
SameSite = SameSiteMode.None,
|
||||
MaxAge = TimeSpan.FromSeconds(s_lifetime),
|
||||
};
|
||||
if (string.IsNullOrEmpty(s_domain)) {
|
||||
if (!string.IsNullOrEmpty(s_domain)) {
|
||||
cookieOpts.Domain = s_domain;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue