- new LoginForm(req).output(resp.getWriter(), getLanguage(req), new HashMap<String, Object>());
+ if (req.getHeader("Host").equals(ServerConstants.getSecureHostNamePort())) {
+ resp.getWriter().println(getLanguage(req).getTranslation("Authentication with certificate failed. Try another certificate or use a password."));
+ } else {
+ new LoginForm(req).output(resp.getWriter(), getLanguage(req), new HashMap<String, Object>());
+ }