Skip to content

Commit

Permalink
Merge pull request #157 from OpenConext/fix/untranslated-error-message
Browse files Browse the repository at this point in the history
Translate Yubikey OTP error messages
  • Loading branch information
pmeulen authored Jul 3, 2018
2 parents 704def1 + 51b0c49 commit ceed432
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down

0 comments on commit ceed432

Please sign in to comment.