LoginModuleImpl could also clear local state after successful commit
@@ -173,6 +173,7 @@ public final class LoginModuleImpl extends AbstractLoginModule {
} else {
log.debug("Could not add information to read only subject {}", subject);
}
+ clearState();
return true;
}
}
