Просмотр исходного кода

ensure to disable autocomplete with 'autocomplete="nope"'

Yuki Takei 7 лет назад
Родитель
Сommit
c2cfbe6220
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/server/views/admin/security.html

+ 2 - 2
src/server/views/admin/security.html

@@ -44,11 +44,11 @@
             <label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Basic authentication') }}</label>
             <label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Basic authentication') }}</label>
             <div class="col-xs-3">
             <div class="col-xs-3">
               <label for="">ID</label>
               <label for="">ID</label>
-              <input class="form-control" type="text" name="settingForm[security:basicName]"   value="{{ settingForm['security:basicName']|default('') }}" {% if not isAclEnabled  %}readonly{% endif%}>
+              <input class="form-control" type="text" name="settingForm[security:basicName]" value="{{ settingForm['security:basicName']|default('') }}" autocomplete="nope" {% if not isAclEnabled  %}readonly{% endif%}>
             </div>
             </div>
             <div class="col-xs-3">
             <div class="col-xs-3">
               <label for="">{{ t('Password') }}</label>
               <label for="">{{ t('Password') }}</label>
-              <input class="form-control" type="text" name="settingForm[security:basicSecret]" value="{{ settingForm['security:basicSecret']|default('') }}" {% if not isAclEnabled  %}readonly{% endif%}>
+              <input class="form-control" type="text" name="settingForm[security:basicSecret]" value="{{ settingForm['security:basicSecret']|default('') }}" autocomplete="nope" {% if not isAclEnabled  %}readonly{% endif%}>
             </div>
             </div>
             <div class="col-xs-offset-3 col-xs-9">
             <div class="col-xs-offset-3 col-xs-9">
               <p class="help-block small">
               <p class="help-block small">