Skip to content

Commit

Permalink
Make sure prettier config is used
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Feb 21, 2024
1 parent 29d9253 commit 692871b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
File renamed without changes.
9 changes: 5 additions & 4 deletions frontend/src/components/account/TwoFactorAuthForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</ul>
</template>
<template v-else-if="tfa_enabled">
<v-alert type="info">
<v-alert type="info" class="mb-2">
{{
$gettext('Two-Factor Authentication is enabled for your account.')
}}
Expand All @@ -75,6 +75,7 @@
<label class="m-label">{{ $gettext('Password') }} </label>
<v-text-field
v-model="password"
autocomplete="new-password"
type="password"
variant="outlined"
:rules="[rules.required]"
Expand Down Expand Up @@ -143,7 +144,7 @@ const showCodesResetDialog = ref(false)
const loadingDisable = ref(false)
const loadingReset = ref(false)
const password = ref('')
const passwordError = ref()
const passwordError = ref([])
const tokens = ref([])
const tfa_enabled = computed(() => authStore.authUser.tfa_enabled)
Expand Down Expand Up @@ -197,7 +198,7 @@ async function disableTFA() {
})
.catch((error) => {
if (error.response.status === 400) {
passwordError.value = error.response.data
passwordError.value = error.response.data.password
} else {
busStore.displayNotification({
msg: $gettext(error.response.data),
Expand Down Expand Up @@ -229,7 +230,7 @@ async function resetRecoveryCodes() {
})
.catch((error) => {
if (error.response.status === 400) {
passwordError.value = error.response.data
passwordError.value = error.response.data.password
} else {
busStore.displayNotification({
msg: $gettext(error.response.data),
Expand Down

0 comments on commit 692871b

Please sign in to comment.