Allow accessing "misc/lang" endpoint with Greenfield auth schemes (#2471)

closes #2437
This commit is contained in:
Umar Bolatov 2021-04-17 19:22:50 -07:00 committed by GitHub
parent c0a544351b
commit 475a68924e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ namespace BTCPayServer.Controllers
}
[Route("misc/lang")]
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie)]
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie + "," + AuthenticationSchemes.Greenfield)]
public IActionResult Languages()
{
return Json(LanguageService.GetLanguages(), new JsonSerializerSettings() { Formatting = Formatting.Indented });