Updated the project's framework to .NET 5 and changed its launch configuration to no longer pop a browser on startup.
This commit is contained in:
Binary file not shown.
@@ -160,7 +160,7 @@
|
|||||||
<virtualDirectory path="/" physicalPath="C:\Users\admin\source\repos\secure-core\SecureCore" />
|
<virtualDirectory path="/" physicalPath="C:\Users\admin\source\repos\secure-core\SecureCore" />
|
||||||
</application>
|
</application>
|
||||||
<bindings>
|
<bindings>
|
||||||
<binding protocol="http" bindingInformation="*:50232:localhost" />
|
<binding protocol="http" bindingInformation="*:50000:localhost" />
|
||||||
</bindings>
|
</bindings>
|
||||||
</site>
|
</site>
|
||||||
<siteDefaults>
|
<siteDefaults>
|
||||||
|
|||||||
Binary file not shown.
@@ -27,8 +27,8 @@ namespace SecureCore.Authentication
|
|||||||
//allowing passwords that are too long can result in a denial-of-service attack. So we must enforce password length limits.
|
//allowing passwords that are too long can result in a denial-of-service attack. So we must enforce password length limits.
|
||||||
//The recommended length is between 64 and 128, so I decided to go for the upper bounds.
|
//The recommended length is between 64 and 128, so I decided to go for the upper bounds.
|
||||||
public static string SectionName { get; } = "PasswordSettings";
|
public static string SectionName { get; } = "PasswordSettings";
|
||||||
private static int AbsoluteMinPasswordLength { get; } = 16;
|
public static int AbsoluteMinPasswordLength { get; } = 16;
|
||||||
private static int AbsoluteMaxPasswordLength { get; } = 128;
|
public static int AbsoluteMaxPasswordLength { get; } = 128;
|
||||||
|
|
||||||
public static (string Hash, string Salt) HashPassword(string password)
|
public static (string Hash, string Salt) HashPassword(string password)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
|
||||||
"iisSettings": {
|
"iisSettings": {
|
||||||
"windowsAuthentication": false,
|
"windowsAuthentication": false,
|
||||||
"anonymousAuthentication": true,
|
"anonymousAuthentication": true,
|
||||||
"iisExpress": {
|
"iisExpress": {
|
||||||
"applicationUrl": "http://localhost:50232",
|
"applicationUrl": "http://localhost:50000",
|
||||||
"sslPort": 0
|
"sslPort": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"IIS Express": {
|
"IIS Express": {
|
||||||
"commandName": "IISExpress",
|
"commandName": "Project",
|
||||||
"launchBrowser": true,
|
"launchUrl": "weather",
|
||||||
"launchUrl": "weatherforecast",
|
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
@@ -21,10 +20,10 @@
|
|||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"launchUrl": "weatherforecast",
|
"launchUrl": "weatherforecast",
|
||||||
"applicationUrl": "http://localhost:5000",
|
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
},
|
||||||
|
"applicationUrl": "http://localhost:5000"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<UserSecretsId>e3dff1d0-8e29-4bc2-8020-8999a38530f3</UserSecretsId>
|
<UserSecretsId>e3dff1d0-8e29-4bc2-8020-8999a38530f3</UserSecretsId>
|
||||||
<SignAssembly>false</SignAssembly>
|
<SignAssembly>false</SignAssembly>
|
||||||
|
<StartupObject>SecureCore.Program</StartupObject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user