mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
added duofederal.com to allowed duo domains (#1091)
This commit is contained in:
@ -103,7 +103,7 @@ namespace Bit.Core.Models.Api
|
||||
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
||||
{
|
||||
if (!Host.StartsWith("api-") || !Host.EndsWith(".duosecurity.com"))
|
||||
if (!Host.StartsWith("api-") || (!Host.EndsWith(".duosecurity.com") && !Host.EndsWith(".duofederal.com")))
|
||||
{
|
||||
yield return new ValidationResult("Host is invalid.", new string[] { nameof(Host) });
|
||||
}
|
||||
|
Reference in New Issue
Block a user