Skip to content

Commit

Permalink
Getting authentication exception allowed in redirect strategy subclas…
Browse files Browse the repository at this point in the history
…ses 2
  • Loading branch information
Mariusz Kopylec committed Dec 17, 2015
1 parent 7c4a167 commit 8ec0257
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public RecaptchaAwareRedirectStrategy(LoginFailuresManager failuresManager) {
@Override
public void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url) throws IOException {
UriComponentsBuilder urlBuilder = fromUriString(url);
Object exception = getAuthenticationException(request);
AuthenticationException exception = getAuthenticationException(request);
if (exception instanceof RecaptchaAuthenticationException) {
urlBuilder.queryParam(RECAPTCHA_ERROR_PARAMETER_NAME);
} else {
Expand Down

0 comments on commit 8ec0257

Please sign in to comment.