Improve CMS initialisation
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / auth / AbstractLoginModule.java
index 36d5e0fef263616b781d28d60c1ad55df224e221..77f0d165aaede68f7b3c852654882cdd244f5572 100644 (file)
@@ -67,8 +67,8 @@ public abstract class AbstractLoginModule implements LoginModule {
                                        .getAuthentication();
                        if (currentAuth != null) {
                                if (subject.getPrincipals(Authentication.class).size() == 0) {
-                                       throw new LoginException(
-                                                       "Security context set but not Authentication principal");
+                                       // throw new LoginException(
+                                       // "Security context set but not Authentication principal");
                                } else {
                                        Authentication principal = subject
                                                        .getPrincipals(Authentication.class).iterator()