From 3008759e8ab32af9069b8dbf298dd90adb84458e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bispo?= Date: Mon, 13 Mar 2023 15:43:44 +0000 Subject: [PATCH] [PM-1317] Make fingerprint phrase property optional. (#2796) --- src/Api/Models/Request/AuthRequestRequestModel.cs | 1 - .../Repositories/EqualityComparers/AuthRequestCompare.cs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Api/Models/Request/AuthRequestRequestModel.cs b/src/Api/Models/Request/AuthRequestRequestModel.cs index 8dab8036b..51629d2e1 100644 --- a/src/Api/Models/Request/AuthRequestRequestModel.cs +++ b/src/Api/Models/Request/AuthRequestRequestModel.cs @@ -17,7 +17,6 @@ public class AuthRequestCreateRequestModel public string AccessCode { get; set; } [Required] public AuthRequestType? Type { get; set; } - [Required] public string FingerprintPhrase { get; set; } } diff --git a/test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/AuthRequestCompare.cs b/test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/AuthRequestCompare.cs index bbe2b14e8..c881662db 100644 --- a/test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/AuthRequestCompare.cs +++ b/test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/AuthRequestCompare.cs @@ -12,8 +12,7 @@ public class AuthRequestCompare : IEqualityComparer x.PublicKey == y.PublicKey && x.RequestDeviceIdentifier == y.RequestDeviceIdentifier && x.RequestDeviceType == y.RequestDeviceType && - x.RequestIpAddress == y.RequestIpAddress && - x.RequestFingerprint == y.RequestFingerprint; + x.RequestIpAddress == y.RequestIpAddress; } public int GetHashCode([DisallowNull] AuthRequest obj)