Improve login
[lgpl/argeo-commons.git] / org.argeo.security.core / src / org / argeo / security / login / EndUserLoginModule.java
index d89643919efea72cd412d5edb6164033bdfdd1fe..e01e714fd5db3eee7825d538833231920388b6ce 100644 (file)
@@ -32,7 +32,7 @@ import org.springframework.security.authentication.BadCredentialsException;
 import org.springframework.security.core.Authentication;
 
 /** Authenticates an end user */
-public class EndUserLoginModule extends AbstractSpringSecurityLoginModule {
+public class EndUserLoginModule extends AbstractSpringLoginModule {
        final static String NODE_REPO_URI = "argeo.node.repo.uri";
 
        private Long waitBetweenFailedLoginAttempts = 5 * 1000l;
@@ -92,9 +92,15 @@ public class EndUserLoginModule extends AbstractSpringSecurityLoginModule {
                        Thread.sleep(waitBetweenFailedLoginAttempts);
                        throw e;
                }
+
                if (selectedLocale != null)
                        LocaleUtils.threadLocale.set(selectedLocale);
 
                return auth;
        }
+
+       @Override
+       public boolean commit() throws LoginException {
+               return super.commit();
+       }
 }