mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	Fix conditionals in the liquid template for OpenID Connect conf.
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| {% if openidc_enabled -%} | {% if openidc_enabled == 1 or openidc_enabled == true -%} | ||||||
|     access_by_lua_block { |     access_by_lua_block { | ||||||
| 	    local openidc = require("resty.openidc") | 	    local openidc = require("resty.openidc") | ||||||
|         local opts = { |         local opts = { | ||||||
| @@ -18,7 +18,7 @@ | |||||||
|             ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR) |             ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR) | ||||||
|         end |         end | ||||||
|  |  | ||||||
|         {% if openidc_restrict_users_enabled -%} |         {% if openidc_restrict_users_enabled == 1 or openidc_restrict_users_enabled == true -%} | ||||||
|         local function contains(table, val) |         local function contains(table, val) | ||||||
|             for i=1,#table do |             for i=1,#table do | ||||||
|                 if table[i] == val then  |                 if table[i] == val then  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user