From 73a2fa27ee6cfe36b142e93d302d491328e65262 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 20 Dec 2018 15:20:48 -0500 Subject: [PATCH] dont check dots for duo --- src/Core/Models/Api/Request/TwoFactorRequestModels.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Models/Api/Request/TwoFactorRequestModels.cs b/src/Core/Models/Api/Request/TwoFactorRequestModels.cs index 6cd1302d3a..5883f34e1c 100644 --- a/src/Core/Models/Api/Request/TwoFactorRequestModels.cs +++ b/src/Core/Models/Api/Request/TwoFactorRequestModels.cs @@ -103,7 +103,7 @@ namespace Bit.Core.Models.Api public IEnumerable Validate(ValidationContext validationContext) { - if(!Host.StartsWith("api-") || !Host.EndsWith(".duosecurity.com") || Host.Count(s => s == '.') != 2) + if(!Host.StartsWith("api-") || !Host.EndsWith(".duosecurity.com")) { yield return new ValidationResult("Host is invalid.", new string[] { nameof(Host) }); }