AnsweredAssumed Answered

Overriding the login page

Question asked by tvaughan77 on Dec 5, 2008
Latest reply on Dec 11, 2008 by tvaughan77

I just bought Jeff Potts' "Alfresco Developer Guide" and I'm trying to get one of his first examples to work correctly…maybe someone here can point out what I'm doing wrong?

I'm trying to replace the default login.jsp with a custom login.jsp page (with just a change to the logo, for starters)

I added a /web/META-INF/faces-config.xml with this snippet:


And added a slightly changed /web/jsp/extension/login.jsp with a different logo

I overwrote the alfresco.war's exploded $TOMCAT_HOME/webapps/alfresco content with those two files and started the application back up.

When I log in to the application, I am first presented with the original login.jsp, which I log in to with admin/admin.  Then I'm presented with my extension/login.jsp which I login to again with admin/admin, and only after the 2nd login am I passed through to the browse.jsp.

What else needs to be done to avoid the "double login" scenario?  Should I delete the original login.jsp page?  I'm hoping I can leave the default alfresco structure alone and just drop customizations "around" the original structure…

Here's what my exploded war looks like right now: