mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 05:00:20 +02:00
re-send a connection token packet if the current one is null
This commit is contained in:
parent
eb9d100fc8
commit
7a21ae8d89
1 changed files with 4 additions and 1 deletions
|
@ -393,9 +393,12 @@ SharedNodePointer DomainGatekeeper::processAgentConnectRequest(const NodeConnect
|
||||||
|
|
||||||
QString verifiedUsername; // if this remains empty, consider this an anonymous connection attempt
|
QString verifiedUsername; // if this remains empty, consider this an anonymous connection attempt
|
||||||
if (!username.isEmpty()) {
|
if (!username.isEmpty()) {
|
||||||
if (usernameSignature.isEmpty()) {
|
const QUuid& connectionToken = _connectionTokenHash.value(username.toLower());
|
||||||
|
|
||||||
|
if (usernameSignature.isEmpty() || connectionToken.isNull()) {
|
||||||
// user is attempting to prove their identity to us, but we don't have enough information
|
// user is attempting to prove their identity to us, but we don't have enough information
|
||||||
sendConnectionTokenPacket(username, nodeConnection.senderSockAddr);
|
sendConnectionTokenPacket(username, nodeConnection.senderSockAddr);
|
||||||
|
|
||||||
// ask for their public key right now to make sure we have it
|
// ask for their public key right now to make sure we have it
|
||||||
requestUserPublicKey(username, true);
|
requestUserPublicKey(username, true);
|
||||||
getGroupMemberships(username); // optimistically get started on group memberships
|
getGroupMemberships(username); // optimistically get started on group memberships
|
||||||
|
|
Loading…
Reference in a new issue