feat: implement credentials login
All checks were successful
container-scan / Container Scan (pull_request) Successful in 2m50s
docker-build / docker (pull_request) Successful in 7m3s

implements the credentials login functionality
This commit is contained in:
Dominik 2025-05-28 13:08:07 +02:00
parent 72a5c25838
commit d383f77c41
Signed by: dominik
GPG key ID: 06A4003FC5049644
10 changed files with 508 additions and 115 deletions

View file

@ -8,6 +8,8 @@ export default function LabeledInput({
value,
name,
autocomplete,
error,
...rest
}: {
type: 'text' | 'email' | 'password';
label: string;
@ -15,7 +17,8 @@ export default function LabeledInput({
value?: string;
name?: string;
autocomplete?: string;
}) {
error?: string;
} & React.InputHTMLAttributes<HTMLInputElement>) {
return (
<div className='grid grid-cols-1 gap-1'>
<Label htmlFor={name}>{label}</Label>
@ -27,7 +30,9 @@ export default function LabeledInput({
id={name}
name={name}
autoComplete={autocomplete}
{...rest}
/>
{error && <p className='text-red-500 text-sm mt-1'>{error}</p>}
</div>
);
}