|
|
@@ -40,28 +40,6 @@
|
|
|
<fieldset>
|
|
|
<legend class="alert-anchor">{{ t('security_setting.Security settings') }}</legend>
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Basic authentication') }}</label>
|
|
|
- <div class="col-xs-3">
|
|
|
- <label for="">ID</label>
|
|
|
- <input class="form-control" type="text" name="settingForm[security:basicName]" value="{{ getConfig('crowi', 'security:basicName') | default('') }}" autocomplete="nope" {% if not aclService.getIsPublicWikiOnly() %}readonly{% endif%}>
|
|
|
- </div>
|
|
|
- <div class="col-xs-3">
|
|
|
- <label for="">{{ t('Password') }}</label>
|
|
|
- <input class="form-control" type="text" name="settingForm[security:basicSecret]" value="{{ getConfig('crowi', 'security:basicSecret') | default('') }}" autocomplete="nope" {% if not aclService.getIsPublicWikiOnly() %}readonly{% endif%}>
|
|
|
- </div>
|
|
|
- <div class="col-xs-offset-3 col-xs-9">
|
|
|
- <p class="help-block small">
|
|
|
- {% if not aclService.getIsPublicWikiOnly() %}
|
|
|
- {{ t("security_setting.basic_acl_disable") }}<br>
|
|
|
- {% else %}
|
|
|
- {{ t("security_setting.common_authentication") }}<br>
|
|
|
- {{ t("security_setting.without_encryption") }}<br>
|
|
|
- {% endif %}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
<div class="form-group">
|
|
|
<label for="settingForm[security:restrictGuestMode]" class="col-xs-3 control-label">{{ t('Guest users access') }}</label>
|
|
|
<div class="col-xs-6">
|
|
|
@@ -123,10 +101,10 @@
|
|
|
<div class="col-xs-9">
|
|
|
<div class="btn-group btn-toggle" data-toggle="buttons">
|
|
|
<label class="btn btn-default btn-rounded btn-outline {% if isEnabled %}active{% endif %}" data-active-class="primary">
|
|
|
- <input name="{{configName}}" value="false" type="radio" {% if isEnabled %}checked{% endif %}> ON
|
|
|
+ <input name="{{configName}}" value="true" type="radio" {% if isEnabled %}checked{% endif %}> ON
|
|
|
</label>
|
|
|
<label class="btn btn-default btn-rounded btn-outline {% if !isEnabled %}active{% endif %}" data-active-class="default">
|
|
|
- <input name="{{configName}}" value="true" type="radio" {% if !isEnabled %}checked{% endif %}> OFF
|
|
|
+ <input name="{{configName}}" value="false" type="radio" {% if !isEnabled %}checked{% endif %}> OFF
|
|
|
</label>
|
|
|
</div>
|
|
|
|