mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:37:27 +02:00
allow editors who can't be verified in the short term
This commit is contained in:
parent
c776f04ab2
commit
cd7d0f383b
1 changed files with 6 additions and 8 deletions
|
@ -219,17 +219,15 @@ SharedNodePointer DomainGatekeeper::processAgentConnectRequest(const NodeConnect
|
||||||
if (allowedEditors.contains(username)) {
|
if (allowedEditors.contains(username)) {
|
||||||
// we have a non-empty allowed editors list - check if this user is verified to be in it
|
// we have a non-empty allowed editors list - check if this user is verified to be in it
|
||||||
if (!verifiedUsername) {
|
if (!verifiedUsername) {
|
||||||
if (!verifyUserSignature(username, usernameSignature, nodeConnection.senderSockAddr)) {
|
if (!verifyUserSignature(username, usernameSignature, HifiSockAddr())) {
|
||||||
// failed to verify a user that is in the allowed editors list
|
// failed to verify a user that is in the allowed editors list
|
||||||
sendConnectionTokenPacket(username, nodeConnection.senderSockAddr);
|
|
||||||
|
|
||||||
qDebug() << "Could not verify user" << username << "as allowed editor. Forcing user to attempt reconnect.";
|
// TODO: fix public key refresh in interface/metaverse and force this check
|
||||||
|
qDebug() << "Could not verify user" << username << "as allowed editor. In the interim this user"
|
||||||
return SharedNodePointer();
|
<< "will be given edit rights to avoid a thrasing of public key requests and connect requests.";
|
||||||
} else {
|
|
||||||
// just verified this user and they are in the allowed editors list
|
|
||||||
canAdjustLocks = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canAdjustLocks = true;
|
||||||
} else {
|
} else {
|
||||||
// already verified this user and they are in the allowed editors list
|
// already verified this user and they are in the allowed editors list
|
||||||
canAdjustLocks = true;
|
canAdjustLocks = true;
|
||||||
|
|
Loading…
Reference in a new issue