Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / util / LoginEntryPoint.java
index a05165f5bf18796b66f83e0e01f8c838f4e77a97..2ccb3ca06b2d8349db91859358a9ff9957038a10 100644 (file)
@@ -8,7 +8,6 @@ import javax.security.auth.login.LoginContext;
 import javax.security.auth.login.LoginException;
 import javax.servlet.http.HttpServletRequest;
 
-import org.argeo.ArgeoException;
 import org.argeo.cms.CmsException;
 import org.argeo.cms.CmsImageManager;
 import org.argeo.cms.CmsView;
@@ -58,7 +57,7 @@ public class LoginEntryPoint implements EntryPoint, CmsView {
                                // }
                        }
                } catch (LoginException e) {
-                       throw new ArgeoException("Cannot log in", e);
+                       throw new CmsException("Cannot log in", e);
                }
 
                if (CurrentUser.getUsername() == null)