fix: 修正微信登录配置文件名称错误

This commit is contained in:
Argo-2016 2020-02-18 19:30:57 +08:00
parent 0d64c69596
commit e3bd7cbbfa
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}