mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 04:32:15 +01:00
always use remember me on the login form
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
import { Head, Link, useForm } from '@inertiajs/vue3';
|
import { Head, Link, useForm } from '@inertiajs/vue3';
|
||||||
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
|
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
|
||||||
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
|
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
|
||||||
import Checkbox from '@/Components/Checkbox.vue';
|
|
||||||
import InputError from '@/Components/InputError.vue';
|
import InputError from '@/Components/InputError.vue';
|
||||||
import InputLabel from '@/Components/InputLabel.vue';
|
import InputLabel from '@/Components/InputLabel.vue';
|
||||||
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
||||||
@@ -16,7 +15,7 @@ defineProps({
|
|||||||
const form = useForm({
|
const form = useForm({
|
||||||
email: '',
|
email: '',
|
||||||
password: '',
|
password: '',
|
||||||
remember: false,
|
remember: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
@@ -75,13 +74,6 @@ const submit = () => {
|
|||||||
<InputError class="mt-2" :message="form.errors.password" />
|
<InputError class="mt-2" :message="form.errors.password" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block mt-4">
|
|
||||||
<label class="flex items-center">
|
|
||||||
<Checkbox v-model:checked="form.remember" name="remember" />
|
|
||||||
<span class="ms-2 text-sm text-muted">Remember me</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-center justify-end mt-4">
|
<div class="flex items-center justify-end mt-4">
|
||||||
<Link
|
<Link
|
||||||
v-if="canResetPassword"
|
v-if="canResetPassword"
|
||||||
|
|||||||
Reference in New Issue
Block a user