fixed missed v-html xss warning vulnerability

This commit is contained in:
cmcooper1980
2026-04-18 19:12:17 -05:00
parent 749e2c5c88
commit f809ae192b

View File

@@ -94,10 +94,18 @@
<TwoFADialog ref="TwoFADialog" /> <TwoFADialog ref="TwoFADialog" />
<Confirm ref="confirmDisableAuth" btn-style="btn-danger" :yes-text="$t('I understand, please disable')" :no-text="$t('Leave')" @yes="disableAuth"> <Confirm ref="confirmDisableAuth" btn-style="btn-danger" :yes-text="$t('I understand, please disable')" :no-text="$t('Leave')" @yes="disableAuth">
<!-- eslint-disable-next-line vue/no-v-html --> <i18n-t keypath="disableauth.message1" tag="p">
<p v-html="$t('disableauth.message1')"></p> <template #disableAuth>
<!-- eslint-disable-next-line vue/no-v-html --> <strong>{{ $t('disableAuth') }}</strong>
<p v-html="$t('disableauth.message2')"></p> </template>
</i18n-t>
<i18n-t keypath="disableauth.message2" tag="p">
<template #scenarios>
<strong>{{ $t('scenarios') }}</strong>
</template>
</i18n-t>
<p>{{ $t("Please use this option carefully!") }}</p> <p>{{ $t("Please use this option carefully!") }}</p>
<div class="mb-3"> <div class="mb-3">