Comment 2 for bug 351311

Revision history for this message
Malcolm Fitzgerald (malcolm-notyourhomework) wrote :

The loginbox appears on the Home page because the code for Home includes this. It seems as though Ziga has changed his mind about the behaviour and moved the code from printHead into cgiHome.

In my experience, the login box should be available from all pages. I have several sites running that need to have login authorisation and what I have found is that users bookmark the pages that they need. They do not bookmark Home and navigate from there. In these cases I have code which tests the user group and displays the login form to guests. That is preferable to the warning box that says "you do not have permission, etc" as many people who do really have permission only need to login and it is much nicer to say "welcome, please login". However, this is a special case, in many cases it will be possible for guests to use the system without ever having to login.

I think that this is an area where we need to put a little more thought into the behaviour. Login can be optional or required, in either case, it is only possible when there is WBB{usertable} or WBB{groups} has been defined.