Thomas Vogt wrote:
I got another issue. I can't login :). When I click to login link I get:
<body onLoad="document.getElementById('username').focus();"> <table height=40% border=0 width=100%><tr valign=middle><td valign=middle align=center>
<br><br><br>
<font face=verdana size=1> <form method="POST" action="/index/login"> <img src="/images/login/navlogo.gif"><br> <br><input id="username" type="text" name="login" style="border: 1px solid #99c;"><br><font color=#6699CC>username</font> <br><input type="password" name="password" style="border: 1px solid #99c;"><br><font color=#6699CC>password</font> <input type="hidden" name="origin" value=""> <br><br><input type="submit" value="Log in"> </form> </font> </td></tr></table> </body>
I thought you were attempting to install NAV from trunk, yet, if the above text is what you were served by clicking the login-button, it looks like you are running a pre 3.0.1-version of NAV. This bug was fixed in that release.
The problem was that a newer version of mod_python serves this page with an automatic content-type of text/plain, because it couldn't see an <html> at the start of the page. This was fixed by adding full HTML dressing to the login page (which it should have had all along), and just to be sure, the login module forces the content-type to be text/html now.