Skip to content

Commit

Permalink
Merge branch 'release/2.9'
Browse files Browse the repository at this point in the history
* release/2.9:
  Translate Yubikey OTP error messages
  Open up /csp/report in the Symfony firewall
  • Loading branch information
pmeulen committed Jul 3, 2018
2 parents 9d2893e + ceed432 commit 5b362b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/config/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ security:
pattern: ^/(info|health)$
security: false

csp_report:
pattern: ^/csp/report$
security: false

saml_based:
saml: true
logout:
Expand Down
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 5b362b6

Please sign in to comment.