mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:37:17 +02:00
Regularize domain username case
This commit is contained in:
parent
26e6ce07d7
commit
0b42ef5748
1 changed files with 3 additions and 2 deletions
|
@ -109,6 +109,7 @@ void DomainGatekeeper::processConnectRequestPacket(QSharedPointer<ReceivedMessag
|
||||||
if (message->getBytesLeftToRead() > 0) {
|
if (message->getBytesLeftToRead() > 0) {
|
||||||
// Read domain username from packet.
|
// Read domain username from packet.
|
||||||
packetStream >> domainUsername;
|
packetStream >> domainUsername;
|
||||||
|
domainUsername = domainUsername.toLower(); // Domain usernames are case-insensitive; internally lower-case.
|
||||||
|
|
||||||
if (message->getBytesLeftToRead() > 0) {
|
if (message->getBytesLeftToRead() > 0) {
|
||||||
// Read domain tokens from packet.
|
// Read domain tokens from packet.
|
||||||
|
@ -528,8 +529,8 @@ SharedNodePointer DomainGatekeeper::processAgentConnectRequest(const NodeConnect
|
||||||
} else if (verifyDomainUserIdentity(domainUsername, domainAccessToken, domainRefreshToken,
|
} else if (verifyDomainUserIdentity(domainUsername, domainAccessToken, domainRefreshToken,
|
||||||
nodeConnection.senderSockAddr)) {
|
nodeConnection.senderSockAddr)) {
|
||||||
// User's domain identity is confirmed.
|
// User's domain identity is confirmed.
|
||||||
getDomainGroupMemberships(domainUsername);
|
verifiedDomainUsername = domainUsername;
|
||||||
verifiedDomainUsername = domainUsername.toLower();
|
getDomainGroupMemberships(verifiedDomainUsername);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// User's domain identity didn't check out.
|
// User's domain identity didn't check out.
|
||||||
|
|
Loading…
Reference in a new issue