From cc680f2cfbcbebe890ea5677f511aec8b69a976a Mon Sep 17 00:00:00 2001 From: AJ_Dhaliwal Date: Thu, 30 Aug 2018 18:01:25 +0800 Subject: [PATCH] Fix comment regarding the length of the salt bytes array --- src/Umbraco.Core/Security/MembershipProviderBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Security/MembershipProviderBase.cs b/src/Umbraco.Core/Security/MembershipProviderBase.cs index ea7296fed2..b6a0588f98 100644 --- a/src/Umbraco.Core/Security/MembershipProviderBase.cs +++ b/src/Umbraco.Core/Security/MembershipProviderBase.cs @@ -720,7 +720,7 @@ namespace Umbraco.Core.Security } else { - //if the salt bytes is too long for the required key length for the algorithm, extend it + //if the salt bytes is too short for the required key length for the algorithm, extend it var numArray2 = new byte[keyedHashAlgorithm.Key.Length]; var dstOffset = 0; while (dstOffset < numArray2.Length) @@ -963,4 +963,4 @@ namespace Umbraco.Core.Security } } -} \ No newline at end of file +}