fix: 修复 Enable 单词拼写错误
This commit is contained in:
parent
7a75f9ec68
commit
fadb8fe5a7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue