Skip to content

Commit

Permalink
add otp code support
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Jul 21, 2024
1 parent e52f63e commit 71b404c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<div class="flex flex-col gap-2">
<label for="email">{{ $trans('email') }}</label>
<InputText id="email"
autocomplete="email"
@change="form.validate('email')"
:invalid="form.invalid('email') || errors.nouser"
v-model.trim.lazy="form.email"
Expand All @@ -40,6 +41,7 @@
<label for="password">{{ $trans('password') }}</label>
<InputText id="password"
type="password"
autocomplete="current-password"
@change="form.validate('password')"
:invalid="form.invalid('password') || errors.nouser"
v-model.trim.lazy="form.password"
Expand Down
2 changes: 2 additions & 0 deletions resources/js/Pages/Auth/TwoFactor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ const selectedMethod = ref(props.lastUsedMethod);
<label for="code">{{ selectedMethodName }}</label>
<InputText v-if="selectedMethodName !== 'TOTP'" id="code"
type="text"
autocomplete="one-time-code"
:invalid="form.invalid('code')"
v-model.trim.lazy="form.code"
/>
<InputOtp
v-else
autocomplete="one-time-code"
:length="6"
class="w-full flex grid-cols-6 justify-between"
:invalid="form.invalid('code')"
Expand Down

0 comments on commit 71b404c

Please sign in to comment.