mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-31 12:22:51 +00:00 
			
		
		
		
	 fe3b1c9b52
			
		
	
	
		fe3b1c9b52
		
			
		
	
	
	
		
			
	
		
	
	
		
			Some checks failed
		
		
	
	Build and Release 3X-UI / build (386) (push) Has been cancelled
				
			Build and Release 3X-UI / build (amd64) (push) Has been cancelled
				
			Build and Release 3X-UI / build (arm64) (push) Has been cancelled
				
			Build and Release 3X-UI / build (armv5) (push) Has been cancelled
				
			Build and Release 3X-UI / build (armv6) (push) Has been cancelled
				
			Build and Release 3X-UI / build (armv7) (push) Has been cancelled
				
			Build and Release 3X-UI / build (s390x) (push) Has been cancelled
				
			* chore: implement 2fa auth from #2786 * chore: format code * chore: replace two factor token input with qr-code * chore: requesting confirmation of setting/removing two-factor authentication otpauth library was taken from cdnjs * chore: revert changes in `ClipboardManager` don't need it. * chore: removing twoFactor prop in settings page * chore: remove `twoFactorQr` object in `mounted` function
		
			
				
	
	
		
			44 lines
		
	
	
		
			No EOL
		
	
	
		
			2.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			No EOL
		
	
	
		
			2.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{define "settings/panel/security"}}
 | |
| <a-collapse default-active-key="1">
 | |
|     <a-collapse-panel key="1" 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-input-password autocomplete="current-password" v-model="user.oldPassword"></a-input-password>
 | |
|             </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-input-password autocomplete="new-password" v-model="user.newPassword"></a-input-password>
 | |
|             </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 key="2" header='{{ i18n "pages.settings.security.twoFactor" }}'>
 | |
|         <a-setting-list-item paddings="small">
 | |
|             <template #title>{{ i18n "pages.settings.security.twoFactorEnable" }}</template>
 | |
|             <template #description>{{ i18n "pages.settings.security.twoFactorEnableDesc" }}</template>
 | |
|             <template #control>
 | |
|                 <a-switch @click="toggleTwoFactor" :checked="allSetting.twoFactorEnable"></a-switch>
 | |
|             </template>
 | |
|         </a-setting-list-item>
 | |
|     </a-collapse-panel>
 | |
| </a-collapse>
 | |
| {{end}} |