diff --git a/Controllers/LoginController.cs b/Controllers/LoginController.cs index f855125..4d4bfc1 100644 --- a/Controllers/LoginController.cs +++ b/Controllers/LoginController.cs @@ -17,13 +17,13 @@ namespace BinaryDad.Notes.Controllers [ActionName(nameof(Login))] [Route("login")] [HttpPost] - public async Task LoginPost([Required] string passPhrase, string returnUrl) + public async Task LoginPost([Required] string passphrase, string returnUrl) { if (ModelState.IsValid) { - var appPassPhrase = Environment.GetEnvironmentVariable("APP_PASS_PHRASE"); + var appPassphrase = Environment.GetEnvironmentVariable("APP_PASSPHRASE"); - if (passPhrase == appPassPhrase) + if (passphrase == appPassphrase) { var claims = new List { diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json index b9b9056..a2dc304 100644 --- a/Properties/launchSettings.json +++ b/Properties/launchSettings.json @@ -5,7 +5,7 @@ "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", - "APP_PASS_PHRASE": "123456" + "APP_PASSPHRASE": "123456" }, "dotnetRunMessages": true, "applicationUrl": "http://localhost:5015" diff --git a/Views/Login/Login.cshtml b/Views/Login/Login.cshtml index 27e3027..020e31b 100644 --- a/Views/Login/Login.cshtml +++ b/Views/Login/Login.cshtml @@ -5,5 +5,5 @@ @Html.ValidationSummary()
- +
\ No newline at end of file