diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-24 12:45:15 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-24 12:45:15 +0300 |
| commit | 7b15274c842b31e8caded3e7f272237f31824852 (patch) | |
| tree | 87e9dd4a9379d99a2888f05de6491e2a337276d7 /web/html/xui/settings/panel/security.html | |
| parent | 6f4eefe60181a9913155ec8c1cc644bf78b23ea3 (diff) | |
chore: moving the settings tabs to a separate directory
Diffstat (limited to 'web/html/xui/settings/panel/security.html')
| -rw-r--r-- | web/html/xui/settings/panel/security.html | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/web/html/xui/settings/panel/security.html b/web/html/xui/settings/panel/security.html new file mode 100644 index 00000000..89ff0d96 --- /dev/null +++ b/web/html/xui/settings/panel/security.html @@ -0,0 +1,60 @@ +{{define "settings/panel/security"}} +<a-collapse> + <a-collapse-panel header='{{ i18n "pages.settings.security.admin"}}'> + <a-setting-list-item paddings="small"> + <template #title>{{ i18n "pages.settings.oldUsername"}}</template> + <template #control> + <a-input autocomplete="username" v-model="user.oldUsername"></a-input> + </template> + </a-setting-list-item> + <a-setting-list-item paddings="small"> + <template #title>{{ i18n "pages.settings.currentPassword"}}</template> + <template #control> + <a-password-input autocomplete="current-password" v-model="user.oldPassword"></a-password-input> + </template> + </a-setting-list-item> + <a-setting-list-item paddings="small"> + <template #title>{{ i18n "pages.settings.newUsername"}}</template> + <template #control> + <a-input v-model="user.newUsername"></a-input> + </template> + </a-setting-list-item> + <a-setting-list-item paddings="small"> + <template #title>{{ i18n "pages.settings.newPassword"}}</template> + <template #control> + <a-password-input autocomplete="new-password" v-model="user.newPassword"></a-password-input> + </template> + </a-setting-list-item> + <a-list-item> + <a-space direction="horizontal" style="padding: 0 20px;"> + <a-button type="primary" @click="updateUser">{{ i18n "confirm" }}</a-button> + </a-space> + </a-list-item> + </a-collapse-panel> + <a-collapse-panel header='{{ i18n "pages.settings.security.secret"}}'> + <a-setting-list-item paddings="small"> + <template #title>{{ i18n "pages.settings.security.loginSecurity" }}</template> + <template #description>{{ i18n "pages.settings.security.loginSecurityDesc" }}</template> + <template #control> + <a-switch @change="toggleToken(allSetting.secretEnable)" v-model="allSetting.secretEnable"></a-switch> + <a-icon style="margin-left: 1rem;" v-if="allSetting.secretEnable" :spin="this.changeSecret" type="sync" + @click="getNewSecret"></a-icon> + </template> + </a-setting-list-item> + <a-setting-list-item paddings="small"> + <template #title>{{ i18n "pages.settings.security.secretToken" }}</template> + <template #description>{{ i18n "pages.settings.security.secretTokenDesc" }}</template> + <template #control> + <a-textarea type="text" :disabled="!allSetting.secretEnable" v-model="user.loginSecret"></a-textarea> + </template> + </a-setting-list-item> + <a-list-item> + <a-space direction="horizontal" style="padding: 0 20px;"> + <a-button type="primary" :loading="this.changeSecret" @click="updateSecret"> + <span>{{ i18n "confirm"}}</span> + </a-button> + </a-space> + </a-list-item> + </a-collapse-panel> +</a-collapse> +{{end}}
\ No newline at end of file |
