Commit 9ae40ba5 authored by nanahira's avatar nanahira

remove old id auth

parent 5669c6ea
Pipeline #42331 failed with stages
in 7 minutes and 51 seconds
...@@ -2478,8 +2478,8 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)-> ...@@ -2478,8 +2478,8 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
# users_cache[client.name] = userData.user.id # users_cache[client.name] = userData.user.id
possible_ids = [ possible_ids = [
userData.user.u16Secret, userData.user.u16Secret,
userData.user.u16SecretPrevious, userData.user.u16SecretPrevious
userData.user.id, # TODO: remove this line after use u16Secret # userData.user.id,
].filter((id) -> id != null) ].filter((id) -> id != null)
try_decrypt_buffer_with_id = (id) -> try_decrypt_buffer_with_id = (id) ->
secret = id % 65535 + 1 secret = id % 65535 + 1
......
...@@ -3251,11 +3251,8 @@ ...@@ -3251,11 +3251,8 @@
return; return;
} }
// users_cache[client.name] = userData.user.id // users_cache[client.name] = userData.user.id
possible_ids = [ // userData.user.id,
userData.user.u16Secret, possible_ids = [userData.user.u16Secret, userData.user.u16SecretPrevious].filter(function(id) {
userData.user.u16SecretPrevious,
userData.user.id // TODO: remove this line after use u16Secret
].filter(function(id) {
return id !== null; return id !== null;
}); });
try_decrypt_buffer_with_id = function(id) { try_decrypt_buffer_with_id = function(id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment