mirror of
https://github.com/besterprotocol/besterd
synced 2023-12-13 21:00:32 +01:00
WIP: Authenticated user matching
This commit is contained in:
parent
e5aa908489
commit
2c4940af44
|
@ -38,7 +38,22 @@ public final class BesterServer
|
|||
|
||||
for(ulong i = 0; i < clients.length; i++)
|
||||
{
|
||||
/* TODO: Implement me */
|
||||
/* The potentially-matched user */
|
||||
BesterConnection potentialMatch = clients[i];
|
||||
|
||||
/* Check if the user is authenticated */
|
||||
if(potentialMatch.isUser())
|
||||
{
|
||||
for(ulong k = 0; k < usernames.length; k++)
|
||||
{
|
||||
/* TODO: Implement check here */
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* TODO: Debug print */
|
||||
debugPrint("Skipping unauthenticated user \"" ~ potentialMatch.getCredentials()[0] ~ "\"");
|
||||
}
|
||||
}
|
||||
|
||||
return matchedUsers;
|
||||
|
|
Loading…
Reference in a new issue