<?php
namespace App\Profile\Form\Type\Auth;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\FormBuilderInterface;
class LoginType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('email', EmailType::class, [
'required' => true,
'label' => 'auth.form.login.label.email',
'attr' => ['autocomplete' => 'username'],
])
->add('password', PasswordType::class, [
'required' => true,
'label' => 'auth.form.login.label.password',
'attr' => ['autocomplete' => 'current-password'],
]);
}
public function getBlockPrefix()
{
return '';
}
}