require 2fa if enabled
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script lang="ts" setup>
|
||||
import teamRoutes from '@/routes/teams';
|
||||
import { Form, Head, useForm } from '@inertiajs/vue3';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import {Form, Head, useForm} from '@inertiajs/vue3';
|
||||
import {Card, CardContent} from '@/components/ui/card';
|
||||
import {Input} from '@/components/ui/input';
|
||||
import InputError from '@/components/InputError.vue';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {Button} from '@/components/ui/button';
|
||||
|
||||
defineOptions({
|
||||
layout: {
|
||||
@@ -49,6 +49,7 @@ const submit = () => form.post(teamRoutes.invite.store().url);
|
||||
/>
|
||||
<InputError :message="form.errors.inviteToken" />
|
||||
</div>
|
||||
<InputError :message="(form.errors as any).require_2fa" />
|
||||
<div class="flex w-full justify-end">
|
||||
<Button :disabled="form.processing" type="submit"
|
||||
>Team Beitreten</Button
|
||||
|
||||
Reference in New Issue
Block a user