Skip to content

Commit 61cebe6

Browse files
committed
fix: update error notification for the TOTP setup
1 parent d0136e3 commit 61cebe6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

custom/TwoFactorsSetup.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div id="authentication-modal" tabindex="-1" class="af-two-factors-setup overflow-y-auto overflow-x-hidden z-50 min-w-[00px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
1212
<div class="relative p-4 w-full max-w-md max-h-full">
1313
<!-- Modal content -->
14-
<div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
14+
<div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" :class="codeError ? 'rounded-b-none' : ''">
1515
<div class="p-10 w-full max-w-md max-h-full custom-auth-wrapper" >
1616
<div>{{$t('Scan this QR code with your authenticator app or open by')}} <a class="text-blue-600" :href="totpUri">{{$t('click')}}</a></div>
1717
<div class="flex justify-center m-3" >
@@ -45,7 +45,6 @@
4545
@on-complete="handleOnComplete"
4646
/>
4747
</div>
48-
<ErrorMessage :error="codeError" />
4948
<!-- <Vue2FACodeInput v-model="code" autofocus /> -->
5049
<div class="flex flex-row gap-2.5 h-12">
5150
<LinkButton to="/login" class="w-full">
@@ -57,6 +56,15 @@
5756
</div>
5857
</div>
5958
</div>
59+
<div
60+
v-if="codeError"
61+
class="af-two-factors-confirmation-error relative top-full left-0 bg-red-100 text-red-700 text-sm px-2 py-2 rounded-b-lg shadow"
62+
>
63+
<p class="pl-6">{{ codeError }} </p>
64+
</div>
65+
<div v-else class="h-[36px] opacity-0">
66+
67+
</div>
6068
</div>
6169
</div>
6270
</div>

0 commit comments

Comments
 (0)