mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 23:33:34 +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 { | ||||
| 	    local openidc = require("resty.openidc") | ||||
|         local opts = { | ||||
| @@ -18,7 +18,7 @@ | ||||
|             ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR) | ||||
|         end | ||||
|  | ||||
|         {% if openidc_restrict_users_enabled -%} | ||||
|         {% if openidc_restrict_users_enabled == 1 or openidc_restrict_users_enabled == true -%} | ||||
|         local function contains(table, val) | ||||
|             for i=1,#table do | ||||
|                 if table[i] == val then  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user