Browse Source

[PM-1317] Make fingerprint phrase property optional. (#2796)

pull/2800/head
André Bispo 3 years ago committed by GitHub
parent
commit
3008759e8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/Api/Models/Request/AuthRequestRequestModel.cs
  2. 3
      test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/AuthRequestCompare.cs

1
src/Api/Models/Request/AuthRequestRequestModel.cs

@ -17,7 +17,6 @@ public class AuthRequestCreateRequestModel @@ -17,7 +17,6 @@ public class AuthRequestCreateRequestModel
public string AccessCode { get; set; }
[Required]
public AuthRequestType? Type { get; set; }
[Required]
public string FingerprintPhrase { get; set; }
}

3
test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/AuthRequestCompare.cs

@ -12,8 +12,7 @@ public class AuthRequestCompare : IEqualityComparer<AuthRequest> @@ -12,8 +12,7 @@ public class AuthRequestCompare : IEqualityComparer<AuthRequest>
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)

Loading…
Cancel
Save