diff --git a/auth/callback.go b/auth/callback.go index 471d415a8e4147e6718e926553619cd2908403e8..d6414bfa398d853744042dee39bec78dd4c5313c 100644 --- a/auth/callback.go +++ b/auth/callback.go @@ -227,6 +227,10 @@ func (m *Manager) handleRequest(cmixMsg format.Message, _, _, partnerContact, _ := m.storage.Auth().GetRequest(partnerID) m.storage.Auth().Delete(partnerID) + // Use the public key sent to me, not the one I + // first retrieved to initiate the auth request + partnerContact.DhPubKey = partnerPubKey + // add a confirmation to disk if err = m.storage.Auth().AddReceived(partnerContact, partnerSIDHPubKey); err != nil {