# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1693122575 -7200
# Node ID 7c105277a9ca30999708515c521967c0be1f1460
# Parent  9ce8ee5304380308aec9ec703c1a6abe1401b8ef
mod_http_oauth2: Remove broken in-CSS templating

Because util.interpolation with a "%b{}" pattern only matches the outer
brackets, so variables inside them would not work unless the pattern is
changed (also considered).

diff -r 9ce8ee530438 -r 7c105277a9ca mod_http_oauth2/README.markdown
--- a/mod_http_oauth2/README.markdown	Sun Aug 27 15:33:14 2023 +0200
+++ b/mod_http_oauth2/README.markdown	Sun Aug 27 09:49:35 2023 +0200
@@ -78,15 +78,6 @@
 oauth2_template_path = "/etc/prosody/custom-oauth2-templates"
 ```
 
-Some templates support additional variables, that can be provided by the
-`oauth2_template_style` option:
-
-```lua
-oauth2_template_style = {
-  background_colour = "#ffffff";
-}
-```
-
 If you know what features your templates use use you can adjust the
 `Content-Security-Policy` header to only allow what is needed:
 
diff -r 9ce8ee530438 -r 7c105277a9ca mod_http_oauth2/mod_http_oauth2.lua
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sun Aug 27 15:33:14 2023 +0200
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sun Aug 27 09:49:35 2023 +0200
@@ -1432,7 +1432,7 @@
 			headers = {
 				["Content-Type"] = "text/css";
 			};
-			body = render_html(templates.css, module:get_option("oauth2_template_style"));
+			body = templates.css;
 		} or nil;
 		["GET /script.js"] = templates.js and {
 			headers = {