Improve CMS theming.
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / util / LoginEntryPoint.java
index 50d844fcb4c33424891703196b2235ca807533e7..74c00b59fc319a452b1b02dcd514852486ea53c1 100644 (file)
@@ -34,8 +34,10 @@ public class LoginEntryPoint implements EntryPoint, CmsView {
        @Override
        public int createUI() {
                final Display display = createDisplay();
-               UiContext.setData(CmsView.KEY, this);
+//             UiContext.setData(CmsView.KEY, this);
+
                CmsLoginShell loginShell = createCmsLoginShell();
+               CmsView.registerCmsView(loginShell.getShell(), this);
                try {
                        // try pre-auth
                        loginContext = new LoginContext(NodeConstants.LOGIN_CONTEXT_USER, loginShell);