From 85661f3485b9746761ca8b74a7893c4be69b2383 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Tue, 14 Apr 2015 08:16:11 -0600 Subject: [PATCH] Move to "protected" only (thanks @MarioE!) --- TShockAPI/DB/UserManager.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TShockAPI/DB/UserManager.cs b/TShockAPI/DB/UserManager.cs index 0026cbc6..a899015e 100755 --- a/TShockAPI/DB/UserManager.cs +++ b/TShockAPI/DB/UserManager.cs @@ -374,7 +374,7 @@ namespace TShockAPI.DB /// Upgrades a password to BCrypt, from an insecure hashing algorithm. /// string password - the raw user password (unhashed) to upgrade - protected internal void UpgradePasswordToBCrypt(string password) + protected void UpgradePasswordToBCrypt(string password) { // Save the old password, in the event that we have to revert changes. string oldpassword = this.Password; @@ -403,7 +403,7 @@ namespace TShockAPI.DB /// Upgrades a password to the highest work factor available in the config. /// string password - the raw user password (unhashed) to upgrade - protected internal void UpgradePasswordWorkFactor(string password) + protected void UpgradePasswordWorkFactor(string password) { // If the destination work factor is not greater, we won't upgrade it or re-hash it int currentWorkFactor = 0; @@ -473,7 +473,7 @@ namespace TShockAPI.DB /// /// A dictionary of hashing algorithms and an implementation object. /// - protected internal readonly Dictionary> HashTypes = new Dictionary> + protected readonly Dictionary> HashTypes = new Dictionary> { {"sha512", () => new SHA512Managed()}, {"sha256", () => new SHA256Managed()}, @@ -488,7 +488,7 @@ namespace TShockAPI.DB /// /// bytes to hash /// string hash - protected internal string HashPassword(byte[] bytes) + protected string HashPassword(byte[] bytes) { if (bytes == null) throw new NullReferenceException("bytes"); @@ -508,7 +508,7 @@ namespace TShockAPI.DB /// /// string to hash /// string hash - protected internal string HashPassword(string password) + protected string HashPassword(string password) { if (string.IsNullOrEmpty(password) || password == "non-existant password") return null;