
|
[dokuwiki]
||
[Date Prev]
[04-2006 Date Index]
[Date Next]
||
[Thread Prev]
[04-2006 Thread Index]
[Thread Next]
[dokuwiki] Re: How to force login
- From: Oliver Geisen <oliver.geisen@xxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 6 Apr 2006 16:29:09 +0200
Hello,
What happens if you turn off the READ privilege for group ALL?
That what's expected: I get an "access denied".
That is not what i wanted.
I did a small modification in inc/template.php, I replaced :
case 'denied':
print p_locale_xhtml('denied');
by :
case 'denied':
html_login();
That's nice !
But now i concern about what users think if they land on the login-
page, but maybe still have logged in. The may try to re-login with
their credentials and always get the same result. I'm not shure about
that any more...
A simple approach could be to deny read access to "@ALL" and grant
read to "@USER", which every named user should be in.
Now each unauthenticated user will get the "access denied" page. On
this page one can tell the user he has insufficient rights to see
this content and maybe re-login with other credentials. To support
him, this page may contain a link to the login-page ([[start?
do=login]]) as well.
There must be a way to determine if the user is logged in or not...
than a simple if-else could be placed into the case-command above to
decide wether or not to redirect to the login-page.
Thanks,
Oliver Geisen
_____________________________
Systemadministrator
Kreisboten Verlag Mühlfellner KG
82362 Weilheim i. Ob.
Tel. 0881/686-904
Fax 0881/686-74
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|