fix: 修正微信登录配置文件名称错误
This commit is contained in:
parent
0d64c69596
commit
e3bd7cbbfa
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue