You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lp...@apache.org on 2023/04/28 09:00:50 UTC

[shiro] branch main updated: bugfix(jakarta-ee): non-remember-me resubmit fails during login fixes https://github.com/lprimak/apps/issues/89

This is an automated email from the ASF dual-hosted git repository.

lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git


The following commit(s) were added to refs/heads/main by this push:
     new 4cbec4168 bugfix(jakarta-ee): non-remember-me resubmit fails during login fixes https://github.com/lprimak/apps/issues/89
4cbec4168 is described below

commit 4cbec4168cbe012299bf9dbf3ef3a6d338899adc
Author: lprimak <le...@flowlogix.com>
AuthorDate: Fri Apr 28 03:59:31 2023 -0500

    bugfix(jakarta-ee): non-remember-me resubmit fails during login
    fixes https://github.com/lprimak/apps/issues/89
---
 .../main/java/org/apache/shiro/ee/filters/FormResubmitSupport.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupport.java b/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupport.java
index 3c8d8090b..c01737ede 100644
--- a/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupport.java
+++ b/support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupport.java
@@ -376,8 +376,8 @@ public class FormResubmitSupport {
             deleteCookie(originalResponse, servletContext, SHIRO_FORM_DATA_KEY);
             return processResubmitResponse(response, originalRequest, originalResponse,
                     response.headers(), savedRequest, servletContext,
-                    decodedFormData.isStatelessRequest ? false : decodedFormData.isPartialAjaxRequest,
-                    rememberedAjaxResubmit);
+                    (rememberedAjaxResubmit && decodedFormData.isStatelessRequest) ? false
+                            : decodedFormData.isPartialAjaxRequest, rememberedAjaxResubmit);
         }
     }