diff --git a/src/Surfnet/StepupRa/RaBundle/Controller/Vetting/YubikeyController.php b/src/Surfnet/StepupRa/RaBundle/Controller/Vetting/YubikeyController.php index f424c758..47372450 100644 --- a/src/Surfnet/StepupRa/RaBundle/Controller/Vetting/YubikeyController.php +++ b/src/Surfnet/StepupRa/RaBundle/Controller/Vetting/YubikeyController.php @@ -61,9 +61,9 @@ public function verifyAction(Request $request, $procedureId) } if ($result->wasOtpInvalid()) { - $form->get('otp')->addError(new FormError('ra.verify_yubikey_command.otp.otp_invalid')); + $form->addError(new FormError('ra.verify_yubikey_command.otp.otp_invalid')); } elseif ($result->didOtpVerificationFail()) { - $form->get('otp')->addError(new FormError('ra.verify_yubikey_command.otp.verification_error')); + $form->addError(new FormError('ra.verify_yubikey_command.otp.verification_error')); } else { $form->addError(new FormError('ra.prove_yubikey_possession.different_yubikey_used')); }