Skip to content

Commit 00556e1

Browse files
authored
fix(core): stop password managers from offering to save the OTP auth code (#404)
1 parent c6864c6 commit 00556e1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/core/src/client/webcomponents/components/display/OtpInput.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ defineExpose({
172172
type="text"
173173
inputmode="numeric"
174174
autocomplete="one-time-code"
175+
data-1p-ignore
176+
data-lpignore="true"
177+
data-bwignore="true"
178+
data-form-type="other"
175179
:autofocus="autofocus && i === 0"
176180
:aria-label="`Digit ${i + 1} of ${length}`"
177181
:aria-invalid="invalid || undefined"

packages/core/src/client/webcomponents/components/views-builtin/ViewBuiltinClientAuthNotice.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function submit() {
8383
</p>
8484
</div>
8585

86-
<form class="flex flex-col items-center gap-4 w-full" @submit.prevent="submit">
86+
<form class="flex flex-col items-center gap-4 w-full" autocomplete="off" @submit.prevent="submit">
8787
<OtpInput
8888
ref="otp"
8989
v-model="code"

0 commit comments

Comments
 (0)