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

Apply Default Keys on -DBRESET #615

Merged
merged 3 commits into from
Jan 1, 2024
Merged

Apply Default Keys on -DBRESET #615

merged 3 commits into from
Jan 1, 2024

Conversation

enusbaum
Copy link
Member

The Command Line Argument -DBRESET was applying a set of default keys on reset, but not the actual default keys defined in appsettings.json.

This change will apply a fixed set of keys to Sysop (SUPER, SYSOP) on reset, and then also apply the default keys defined in appsettings.json. The GUEST account will only have the default keys.

- Fixes when using `-DBRESET` to apply default user keys defined in `appsettings.json`
- Updated to use Primary Constructor Pattern
@enusbaum enusbaum requested a review from paladine December 31, 2023 19:07
Comment on lines +17 to 18
public abstract class RepositoryBase(ISessionBuilder sessionBuilder, IResourceManager resourceManager) : IRepositoryBase, IDisposable
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this some fancy C# way to define fields in the constructor rather than inside the class itself?

@paladine paladine merged commit 8e02afd into master Jan 1, 2024
1 check passed
@paladine paladine deleted the default-keys-on-reset branch January 1, 2024 16:46
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.

2 participants