diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-10-10 21:36:58 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-10-19 21:37:01 +0200 |
commit | 5b908c86320ee73f2722c85f8a47fa03ec093c6c (patch) | |
tree | 96c57bc839f9c8f50a3bba08075fdfb6ab6eaff4 /src/Pairing.hs | |
parent | 61808c8cd7b30ceaf9915e72d734c4d095ff67d6 (diff) |
Use extended identity data for name
Diffstat (limited to 'src/Pairing.hs')
-rw-r--r-- | src/Pairing.hs | 2 |
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" |