diff --git a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs index d51c16cc..a35c6d0f 100644 --- a/src/admin/Bootstrap.Admin/Controllers/AccountController.cs +++ b/src/admin/Bootstrap.Admin/Controllers/AccountController.cs @@ -226,7 +226,7 @@ namespace Bootstrap.Admin.Controllers [HttpGet] public IActionResult WeChat([FromServices]IConfiguration config) { - var enabled = config.GetValue($"{nameof(GitHubOptions)}:Enabled", false); + var enabled = config.GetValue($"{nameof(WeChatOptions)}:Enabled", false); return Challenge(enabled ? WeChatDefaults.AuthenticationScheme : CookieAuthenticationDefaults.AuthenticationScheme); } }