k">
            <span>{{ i18n "confirm" }}</span>
        </a-button>
    </template>
</a-modal>

<script>
    const twoFactorModal = {
        title: '',
        description: '',
        fileName: '',
        token: '',
        enteredCode: '',
        visible: false,
        type: 'set',
        confirm: null,
        totpObject: null,
        qrImage: "",
        ok() {
            if (twoFactorModal.totpObject.generate() === twoFactorModal.enteredCode) {
                ObjectUtil.execute(twoFactorModal