Skip to content

Commit

Permalink
Make sure you actually log in
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Nov 5, 2024
1 parent 6cc528c commit 9a72974
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,21 @@ class="justify-center"
</p>

<template v-if="!loggedIn && (!checkoutLogin.isEmailAvailable || checkoutLogin.createAccount)">
<x-rapidez-ct::input.password
label="Password"
name="password"
v-model="checkoutLogin.password"
required
/>
<div class="relative">
<x-rapidez-ct::input.password
label="Password"
name="password"
v-model="checkoutLogin.password"
required
/>
<input
type="checkbox"
v-if="!checkoutLogin.createAccount"
oninvalid="this.setCustomValidity('{{ __('Please log in') }}')"
class="absolute h-full inset-0 opacity-0 pointer-events-none"
required
/>
</div>
</template>
<p v-if="!loggedIn && !checkoutLogin.isEmailAvailable" class="self-end text-ct-inactive">
@lang('You already have an account with this e-mail address. Please log in to continue.')
Expand Down

0 comments on commit 9a72974

Please sign in to comment.