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

chore: refactor register window #2353

Merged

Conversation

WeylonSantana
Copy link
Contributor

No description provided.

Copy link
Member

@lodicolo lodicolo left a comment

Choose a reason for hiding this comment

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

I'm guessing @Arufonsu will want names un-abbreviated here too


//Init
public RegisterWindow(Canvas parent, MainMenu mainMenu)
public RegisterWindow(Canvas parent, MainMenu mainMenu) : base(parent, "RegistrationWindow")
Copy link
Member

Choose a reason for hiding this comment

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

Use nameof() instead of a hardcoded string

@@ -209,7 +209,7 @@ private void LoadCredentials()
_chkSavePass.IsChecked = true;
}

private static string ComputePasswordHash(string password) =>
public static string ComputePasswordHash(string password) =>
Copy link
Member

Choose a reason for hiding this comment

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

This should be moved into a separate utility class instead of just made public

@WeylonSantana WeylonSantana merged commit 143d1b3 into AscensionGameDev:main Aug 1, 2024
1 check passed
@WeylonSantana WeylonSantana deleted the refactor-register branch August 1, 2024 16:38
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