OnLogout, Steam platform auth in account creation. Not configurable to ensure server uses ticket to validate.
This commit is contained in:
@@ -22,19 +22,13 @@ public class AuthenticationEventPatch
|
||||
|
||||
static MethodBase TargetMethod() => patchResult.Method;
|
||||
|
||||
private static bool RanPostActions { get; set; } = false;
|
||||
static void Postfix(ref string accessToken)
|
||||
{
|
||||
UniversalPatchPlugin.Log.LogInfo("Intercepted AccessToken");
|
||||
RecNetInteractions.AccessToken = accessToken;
|
||||
|
||||
if (!RanPostActions)
|
||||
{
|
||||
bool value = (bool)hasAccessTokenProperty.GetValue(patchResult.Type);
|
||||
if (value) UniversalPatchPlugin.Log.LogInfo("Running post-authentication actions");
|
||||
foreach (var action in RecNetInteractions.postAuthenticationActions)
|
||||
action();
|
||||
}
|
||||
else RanPostActions = true;
|
||||
UniversalPatchPlugin.Log.LogInfo("Running post-authentication actions");
|
||||
foreach (var action in RecNetInteractions.postAuthenticationActions)
|
||||
action();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user