import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.argeo.cms.CmsException;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
import org.osgi.service.useradmin.Authorization;
bc = FrameworkUtil.getBundle(AnonymousLoginModule.class).getBundleContext();
assert bc != null;
} catch (Exception e) {
- throw new CmsException("Cannot initialize login module", e);
+ throw new IllegalStateException("Cannot initialize login module", e);
}
}
@Override
public boolean abort() throws LoginException {
- // authorization = null;
return true;
}