if(url.equals("/")) {
//content=new HTMLLoginScreen(parent,parent.getStorage(),false);
XMLGenericModel model=parent.getStorage().createXMLGenericModel();
AuthDisplayMngr adm = parent.getStorage().getAuthenticator().getAuthDisplayMngr();
if(header.isContentSet("login")) {
model.setStateVar("invalid password","yes");
}
// Let the authenticator setup the loginscreen
adm.setLoginScreenVars(model);
/**
* Show login screen depending on WebMailServer's default locale.
*/
/*
content = new XHTMLDocument(model.getRoot(),
parent.getStorage().getStylesheet(adm.getLoginScreenFile(),
Locale.getDefault(),"default"));
*/
content = new XHTMLDocument(model.getRoot(),
parent.getStorage().getStylesheet(adm.getLoginScreenFile(),
parent.getDefaultLocale(),parent.getProperty("webmail.default.theme")));
} else if(url.equals("/login")) {
WebMailSession sess=(WebMailSession)session;
UserData user=sess.getUser();
content=new XHTMLDocument(session.getModel(),parent.getStorage().getStylesheet("login.xsl",user.getPreferredLocale(),user.getTheme()));