twofactor_enforced: Make template work with nil values
This commit is contained in:
parent
b7e94c2259
commit
24c2fcbdfc
|
@ -214,19 +214,23 @@ $CONFIG = array (
|
||||||
array (
|
array (
|
||||||
0 => 'admin',
|
0 => 'admin',
|
||||||
1 => 'forcemfa',
|
1 => 'forcemfa',
|
||||||
|
<%- if @twofactor_enforced_groups -%>
|
||||||
<%- index = 2 -%>
|
<%- index = 2 -%>
|
||||||
<%- @twofactor_enforced_groups.each do |item| -%>
|
<%- @twofactor_enforced_groups.each do |item| -%>
|
||||||
<%= index %> => '<%= item %>',
|
<%= index %> => '<%= item %>',
|
||||||
<%- index += 1 -%>
|
<%- index += 1 -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- end -%>
|
||||||
),
|
),
|
||||||
'twofactor_enforced_excluded_groups' =>
|
'twofactor_enforced_excluded_groups' =>
|
||||||
array (
|
array (
|
||||||
|
<%- if @twofactor_enforced_excluded_groups -%>
|
||||||
<%- index = 0 -%>
|
<%- index = 0 -%>
|
||||||
<%- @twofactor_enforced_excluded_groups.each do |item| -%>
|
<%- @twofactor_enforced_excluded_groups.each do |item| -%>
|
||||||
<%= index %> => '<%= item %>',
|
<%= index %> => '<%= item %>',
|
||||||
<%- index += 1 -%>
|
<%- index += 1 -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- end -%>
|
||||||
),
|
),
|
||||||
'updatechecker' => false,
|
'updatechecker' => false,
|
||||||
'version' => '<%= @nextcloud_version_string %>',
|
'version' => '<%= @nextcloud_version_string %>',
|
||||||
|
|
Loading…
Reference in a new issue