mmark
Hi,
this is a first timer! Many thanks for all the effort to keep Dokuwiki up and runnin'.
We are running Dokuwiki as a 'closed shop'. So there is no 'enterance' without loggin in. Even the start page should be disclosed. Access control works fine so far. It is just that there is a 'permission denied' message above the log-in form if the wiki is 'started' in the browser. After all this makes sense, because the start page is the first page and this is already password protected.
What yould be the prefered / most elegant way to get a 'clean' log-in page to start from.
Many thanks in advance.
Best regards,
Mark
turnermm
You can make a non-sensitive start page which is read only, then logins will not get that message.
mmark
@turnermm,
many thanks for your reply. I changed the ACL settings according to your propposal. It works, but:
I could generate a more or less empty start page. But after loggin in a 'real' start page should be visible. My prefered approach would look like this:
-> 'empty' landing page (preferably according to the bootstrap3 plugin) with login form
-> log-in
-> 'real' start page
This might be a basic newbe question. I thought about it quite a while. I am still in a pocess to overcome 'static friction' regarding my Dokuwiki insight.
Thanks in advance.
Mark
martinr
Instead of the start page, could you not create a "Welcome" page which simply has a clickable link to enter the site? Users would be told the URL of the welcome page, log in , and then access start.
Alternatively: put your welcome page in another namespace as its start page. If doing this (and it is very little extra work) you can use the non-sensitive namespace for any publicly visible stuff.
ach
You could use the
IfAuth plugin to show different content to different groups.
mmark
Hi,
thanks for the replys - I will check your recommendations soon.
Meanwhile I came to the following idea: What I need would be a start page that looks exactly like the start page with the command 'do=login'. The result is an empty page with just a login from.
Will reply soon.
Rgrds,
Mark
mmark
Thanks for your replys to all!
@MartinR,
yes, your suggestion would work. Maybe the easiest way would be to modify the index.php to redirect to something like this ... doku.php?id=start&do=login. But this would not be elegant for users that are already loged in (revisiting users) because they would be prompted to log in again.
@ach, MartinR,
using different namespaces or the IfAuth-plugin would surely work one way or the other, but there are in fact no non-sensitiv informations. It is a complete closed shop.
The most elegant solution would be a workflow like this:
loged-in user (revisiting): start with the usual start page
not loged-in user: start with an empty landing page that just shows a login form (as you get with .../doku.php?id=start&do=login)
I think this modification could be done in the doku.php. Calling up the wiki page there just has to be made the decision if the user is already logged in. If yes: /doku.php?id=start, if no: doku.php?id=start&do=login. This should behave exactly like described above.
Maybe there might be a different approach using the landing-page feature of the bootstrap3 plug-in?
If somebody could please confirm that the above suggestion might be correct. Unfortunatly my php-knowledge is limitted. Im am willing to dig deaper on my own. But maybe someone could prevent my from a dead end in advance.
Many thanks so far!
Mark
mmark
I just edited the index.php:
header("Location: doku.php?id=start&do=login");
That seems do to the trick. Simple as that. As long as you do not bookmark the doku.php directly you get a blank starting page (with login form) without any 'permission denied' message.
Let me know if there are alternative solutions. Otherwise this can be closed.
Many thanks to all.