fix typo causing beammp forum id not to show in identifiers (fix #137)

This commit is contained in:
Lion Kortlepel 2022-10-22 21:16:31 +02:00
parent 340933bbb3
commit 917c501faf
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -262,7 +262,7 @@ std::shared_ptr<TClient> TNetwork::Authentication(TConnection&& RawConnection) {
Client->SetName(AuthRes["username"]);
Client->SetRoles(AuthRes["roles"]);
Client->SetIsGuest(AuthRes["guest"]);
for (const auto& ID : AuthRes["identifier"]) {
for (const auto& ID : AuthRes["identifiers"]) {
auto Raw = std::string(ID);
auto SepIndex = Raw.find(':');
Client->SetIdentifier(Raw.substr(0, SepIndex), Raw.substr(SepIndex + 1));