mfa_totp.vue (913B)
1 <template> 2 <div> 3 <div class="method-item"> 4 <strong>{{ $t('settings.mfa.otp') }}</strong> 5 <button 6 v-if="!isActivated" 7 class="btn btn-default" 8 @click="doActivate" 9 > 10 {{ $t('general.enable') }} 11 </button> 12 13 <button 14 v-if="isActivated" 15 class="btn btn-default" 16 :disabled="deactivate" 17 @click="doDeactivate" 18 > 19 {{ $t('general.disable') }} 20 </button> 21 </div> 22 23 <confirm 24 v-if="deactivate" 25 :disabled="inProgress" 26 @confirm="confirmDeactivate" 27 @cancel="cancelDeactivate" 28 > 29 {{ $t('settings.enter_current_password_to_confirm') }}: 30 <input 31 v-model="currentPassword" 32 type="password" 33 > 34 </confirm> 35 <div 36 v-if="error" 37 class="alert error" 38 > 39 {{ error }} 40 </div> 41 </div> 42 </template> 43 <script src="./mfa_totp.js"></script>