Merge branch 'dev' into ajnart/fix-duplicate-users

This commit is contained in:
Meier Lukas
2024-05-18 13:49:25 +02:00
committed by GitHub
62 changed files with 308 additions and 235 deletions

View File

@@ -35,7 +35,7 @@ export const LoginForm = () => {
},
});
const handleSubmit = async (values: FormType) => {
const handleSubmitAsync = async (values: FormType) => {
setIsLoading(true);
setError(undefined);
await signIn("credentials", {
@@ -66,7 +66,9 @@ export const LoginForm = () => {
return (
<Stack gap="xl">
<form onSubmit={form.onSubmit((values) => void handleSubmit(values))}>
<form
onSubmit={form.onSubmit((values) => void handleSubmitAsync(values))}
>
<Stack gap="lg">
<TextInput
label={t("field.username.label")}