Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear autologon credentials on session log-on #20

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

starcraft66
Copy link
Member

The method we use to auto log-in the gamer and tournament accounts is a huge hack that relies on a side-effect we introduce in the windows registry, altering the behaviour of winlogon. Up until now, the credentials were never cleared and only upserted when logging in new sessions.

This PR introduces a new message type the tray application can send to the service over the named pipe to instruct the service to clear the autologon credentials in the registry. Currently, this will be performed on launch of the tray app (i.e. once an interactive session logs in). This is a sensible default that will make sure the credentials are cleaned up pretty much as soon as possible. The only downside to this compared to the previous behaviour is that if a computer is rebooted during a play session, it will not auto-login again and resume the play session. This was never intended functionality and just a happy side-effect of the previous implementation. We could restore this behaviour by clearing the credentials only at the end of the session but I think this would be less reliable and prone to glitching.

Fixes #15

@starcraft66 starcraft66 merged commit 19fc88a into main Jun 18, 2024
2 checks passed
@starcraft66 starcraft66 deleted the feature/tgh/clear-autologon-creds branch June 18, 2024 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Left-over auto-login credentials
1 participant