snappymail/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsSecurity.html
2024-02-26 13:39:09 +01:00

58 lines
2.3 KiB
HTML

<div class="legend" data-i18n="TAB_SECURITY/LEGEND_SECURITY"></div>
<div class="form-horizontal">
<div class="control-group">
<div>
<div data-bind="component: {
name: 'Checkbox',
params: {
value: useLocalProxyForExternalImages,
label: 'TAB_SECURITY/LABEL_USE_IMAGE_PROXY'
}
}"></div>
<div data-bind="component: {
name: 'Checkbox',
params: {
value: capaOpenPGP,
label: 'TAB_SECURITY/LABEL_ALLOW_OPENPGP'
}
}"></div>
</div>
</div>
</div>
<form class="form-horizontal" spellcheck="false">
<div class="legend" data-i18n="TAB_SECURITY/LEGEND_ADMIN_PANEL_ACCESS_CREDENTIALS"></div>
<div class="control-group" data-bind="css: {'error': adminLoginError}">
<label data-i18n="GLOBAL/USERNAME"></label>
<input type="text" autocomplete="username" autocorrect="off" autocapitalize="off"
data-bind="textInput: adminLogin">
</div>
<div class="control-group">
<label data-i18n="TAB_SECURITY/LABEL_CURRENT_PASSWORD"></label>
<input type="password" autocomplete="current-password" autocorrect="off" autocapitalize="off"
data-bind="textInput: adminPassword">
</div>
<div class="control-group" data-bind="css: {'error': adminPasswordNewError}">
<label data-i18n="TAB_SECURITY/LABEL_NEW_PASSWORD"></label>
<input type="password" autocomplete="new-password" autocorrect="off" autocapitalize="off"
data-bind="textInput: adminPasswordNew">
</div>
<div class="control-group" data-bind="css: {'error': adminPasswordNewError}">
<label data-i18n="TAB_SECURITY/LABEL_REPEAT_PASSWORD"></label>
<input type="password" autocomplete="new-password" autocorrect="off" autocapitalize="off"
data-bind="textInput: adminPasswordNew2">
</div>
<div class="control-group">
<label data-i18n="LOGIN/LABEL_TOTP"></label>
<input type="text" autocomplete="off" autocorrect="off" autocapitalize="off"
pattern="[A-Z2-7]{16,}"
data-bind="textInput: adminTOTP">
</div>
<div class="control-group">
<label></label>
<pre data-bind="text: viewQRCode" style="font-family:var(--fontMono);font-size:11px;letter-spacing:-1px;line-height:1;"></pre>
</div>
<div class="control-group">
<a class="btn" data-bind="command: saveAdminUserCommand, css: { 'btn-success': saveSuccess, 'btn-danger': saveError }"
data-icon="🔑" data-i18n="GLOBAL/SAVE"></a>
</div>
</form>