diff --git a/src/Controller/ResetPassword.php b/src/Controller/ResetPassword.php index 573bb9a013..e91bba17a5 100644 --- a/src/Controller/ResetPassword.php +++ b/src/Controller/ResetPassword.php @@ -11,6 +11,12 @@ use Symfony\Component\Validator\Constraints\NotBlank; use SymfonyCasts\Bundle\ResetPassword\Controller\ResetPasswordControllerTrait; use SymfonyCasts\Bundle\ResetPassword\Exception\ResetPasswordExceptionInterface; +/** + * Send password reset emails to users + * TODO: As we don't have email services setup yet, this won't be tested right now + * + * @codeCoverageIgnore + */ class ResetPassword extends Controller { use ResetPasswordControllerTrait; @@ -78,7 +84,7 @@ class ResetPassword extends Controller // The token is valid; allow the user to change their password. $form = From::create([ - FormFields::password(), + FormFields::repeated_password(), ['password_reset', SubmitType::class, ['label' => _m('Change password')]], ]); diff --git a/src/Controller/TemplateController.php b/src/Controller/TemplateController.php index 7b7362847a..e57a8fc7f4 100644 --- a/src/Controller/TemplateController.php +++ b/src/Controller/TemplateController.php @@ -22,6 +22,11 @@ namespace App\Controller; use App\Core\Controller; use Symfony\Component\HttpFoundation\Request; +/** + * Can be used to implement static routes that simply require rendering a Twig template + * + * @codeCoverageIgnore + */ class TemplateController extends Controller { public function handle(Request $req)