summaryrefslogtreecommitdiff
path: root/src/Pairing.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-10-10 21:36:58 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-10-19 21:37:01 +0200
commit5b908c86320ee73f2722c85f8a47fa03ec093c6c (patch)
tree96c57bc839f9c8f50a3bba08075fdfb6ab6eaff4 /src/Pairing.hs
parent61808c8cd7b30ceaf9915e72d734c4d095ff67d6 (diff)
Use extended identity data for name
Diffstat (limited to 'src/Pairing.hs')
-rw-r--r--src/Pairing.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Pairing.hs b/src/Pairing.hs
index 8567168..0b31625 100644
--- a/src/Pairing.hs
+++ b/src/Pairing.hs
@@ -116,7 +116,7 @@ instance PairingResult a => Service (PairingService a) where
(NoPairing, PairingRequest pdata sdata confirm) -> do
self <- maybe (throwError "failed to validate received identity") return $ validateIdentity sdata
self' <- maybe (throwError "failed to validate own identity") return .
- validateIdentity . lsIdentity . fromStored =<< svcGetLocal
+ validateExtendedIdentity . lsIdentity . fromStored =<< svcGetLocal
when (not $ self `sameIdentity` self') $ do
throwError "pairing request to different identity"