mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +02:00
Ensure 'verifiedUsername' is always lower case
This commit is contained in:
parent
abda0b2381
commit
91e8f1f0f8
1 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ NodePermissions DomainGatekeeper::setPermissionsForUser(bool isLocalUser, QStrin
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// if this user is a friend of the domain-owner, give them friend's permissions
|
// if this user is a friend of the domain-owner, give them friend's permissions
|
||||||
if (_domainOwnerFriends.contains(verifiedUsername.toLower())) {
|
if (_domainOwnerFriends.contains(verifiedUsername)) {
|
||||||
userPerms |= _server->_settingsManager.getStandardPermissionsForName(NodePermissions::standardNameFriends);
|
userPerms |= _server->_settingsManager.getStandardPermissionsForName(NodePermissions::standardNameFriends);
|
||||||
#ifdef WANT_DEBUG
|
#ifdef WANT_DEBUG
|
||||||
qDebug() << "| user-permissions: user is friends with domain-owner, so:" << userPerms;
|
qDebug() << "| user-permissions: user is friends with domain-owner, so:" << userPerms;
|
||||||
|
@ -412,7 +412,7 @@ SharedNodePointer DomainGatekeeper::processAgentConnectRequest(const NodeConnect
|
||||||
} else if (verifyUserSignature(username, usernameSignature, nodeConnection.senderSockAddr)) {
|
} else if (verifyUserSignature(username, usernameSignature, nodeConnection.senderSockAddr)) {
|
||||||
// they sent us a username and the signature verifies it
|
// they sent us a username and the signature verifies it
|
||||||
getGroupMemberships(username);
|
getGroupMemberships(username);
|
||||||
verifiedUsername = username;
|
verifiedUsername = username.toLower();
|
||||||
} else {
|
} else {
|
||||||
// they sent us a username, but it didn't check out
|
// they sent us a username, but it didn't check out
|
||||||
requestUserPublicKey(username);
|
requestUserPublicKey(username);
|
||||||
|
|
Loading…
Reference in a new issue