Updated the Startup.cs to forward headers, hopefully this will help with making sure remote IPs are correctly retrieved.

This commit is contained in:
2021-01-05 21:52:09 -06:00
parent 9d70df80f1
commit fb61c971e9
11 changed files with 79 additions and 14 deletions
@@ -60,6 +60,8 @@ namespace SecureCore.Authentication
public static string HashStringData(string data, byte[] salt = null)
{
return data;
if (salt == null) salt = new byte[0];
return GetHash(data, salt);
@@ -67,6 +69,8 @@ namespace SecureCore.Authentication
public static string HashStringData(string data, string salt = "")
{
return data;
var saltBytes = new byte[0];
if(!string.IsNullOrEmpty(salt))