fix: 修复 Enable 单词拼写错误

This commit is contained in:
Argo Zhang 2019-09-16 18:33:35 +08:00
parent 7a75f9ec68
commit fadb8fe5a7
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 4 additions and 4 deletions

View File

@ -176,7 +176,7 @@ namespace Bootstrap.Admin.Controllers
[HttpGet]
public IActionResult Gitee([FromServices]IConfiguration config)
{
var enabled = config.GetValue($"{nameof(GiteeOptions)}:Eanbeld", false);
var enabled = config.GetValue($"{nameof(GiteeOptions)}:Enabled", false);
return Challenge(enabled ? GiteeDefaults.AuthenticationScheme : CookieAuthenticationDefaults.AuthenticationScheme);
}
@ -187,7 +187,7 @@ namespace Bootstrap.Admin.Controllers
[HttpGet]
public IActionResult GitHub([FromServices]IConfiguration config)
{
var enabled = config.GetValue($"{nameof(GitHubOptions)}:Eanbeld", false);
var enabled = config.GetValue($"{nameof(GitHubOptions)}:Enabled", false);
return Challenge(enabled ? GitHubDefaults.AuthenticationScheme : CookieAuthenticationDefaults.AuthenticationScheme);
}
}

View File

@ -67,7 +67,7 @@
"Secure": true
},
"GiteeOptions": {
"Eanbeld": true,
"Enabled": true,
"ClientId": "<ClientId>",
"ClientSecret": "<ClientSecret>",
"CallbackPath": "/signin-gitee",
@ -77,7 +77,7 @@
"App": "2"
},
"GitHubOptions": {
"Eanbeld": true,
"Enabled": true,
"ClientId": "<ClientId>",
"ClientSecret": "<ClientSecret>",
"CallbackPath": "/signin-github",