mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Make clients identify themselves against server
prep for potential later async auth system. Wanted to get this into the 2.3 client update.
This commit is contained in:
@@ -9,6 +9,7 @@ import functools
|
|||||||
import webbrowser
|
import webbrowser
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import socket
|
import socket
|
||||||
|
import uuid
|
||||||
from random import randrange
|
from random import randrange
|
||||||
|
|
||||||
from Utils import get_item_name_from_id, get_location_name_from_address, ReceivedItem
|
from Utils import get_item_name_from_id, get_location_name_from_address, ReceivedItem
|
||||||
@@ -886,7 +887,8 @@ async def server_auth(ctx: Context, password_requested):
|
|||||||
ctx.awaiting_rom = False
|
ctx.awaiting_rom = False
|
||||||
ctx.auth = ctx.rom.copy()
|
ctx.auth = ctx.rom.copy()
|
||||||
await ctx.send_msgs([['Connect', {
|
await ctx.send_msgs([['Connect', {
|
||||||
'password': ctx.password, 'rom': ctx.auth, 'version': Utils._version_tuple, 'tags': get_tags(ctx)
|
'password': ctx.password, 'rom': ctx.auth, 'version': Utils._version_tuple, 'tags': get_tags(ctx),
|
||||||
|
'uuid': uuid.getnode()
|
||||||
}]])
|
}]])
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user