+ // @Override
+ // public Session login() throws LoginException, RepositoryException {
+ // Session session = super.login();
+ // String username = session.getUserID();
+ // if (username == null)
+ // return session;
+ // if (session.getUserID().equals(AuthConstants.ROLE_ANONYMOUS))
+ // return session;
+ //
+ // if (checkedUsers.contains(username))
+ // return session;
+ // Session adminSession = KernelUtils.openAdminSession(getRepository(),
+ // session.getWorkspace().getName());
+ // try {
+ // syncJcr(adminSession, username);
+ // checkedUsers.add(username);
+ // } finally {
+ // JcrUtils.logoutQuietly(adminSession);
+ // }
+ // return session;
+ // }
+