You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:18:59 UTC
[sling-org-apache-sling-auth-form] 15/26: SLING-2382 - having form
auth handler set the login event triggering auth info property
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.auth.form-1.0.4
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-form.git
commit 87f291fd6727ab35c557225ca0f2186efb93142f
Author: Justin Edelson <ju...@apache.org>
AuthorDate: Wed Jan 25 03:06:07 2012 +0000
SLING-2382 - having form auth handler set the login event triggering auth info property
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/auth/form@1235611 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java b/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java
index fb1ce00..03938af 100644
--- a/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java
+++ b/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java
@@ -49,6 +49,7 @@ import org.apache.sling.api.resource.LoginException;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.api.resource.ResourceResolverFactory;
+import org.apache.sling.auth.core.AuthConstants;
import org.apache.sling.auth.core.AuthUtil;
import org.apache.sling.auth.core.spi.AbstractAuthenticationHandler;
import org.apache.sling.auth.core.spi.AuthenticationHandler;
@@ -584,6 +585,7 @@ public class FormAuthenticationHandler extends AbstractAuthenticationHandler {
if (user != null && pwd != null) {
info = new AuthenticationInfo(HttpServletRequest.FORM_AUTH,
user, pwd.toCharArray());
+ info.put(AuthConstants.AUTH_INFO_LOGIN, new Object());
// if this request is providing form credentials, we have to
// make sure, that the request is redirected after successful
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.