diff options
author | Joey Hess <joey@kitenet.net> | 2010-08-30 18:32:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-08-30 18:33:00 -0400 |
commit | f55c7d13966ff1cd90ddf50e05829f6bb3eda557 (patch) | |
tree | 1107d6c0672474bf53ea54960c580a8b23e858b2 /IkiWiki/Plugin | |
parent | 2df0999e4033278a6cc8f6e2d00449224aa09efa (diff) | |
download | ikiwiki-f55c7d13966ff1cd90ddf50e05829f6bb3eda557.tar ikiwiki-f55c7d13966ff1cd90ddf50e05829f6bb3eda557.tar.gz |
httpauth: Avoid redirecting the user to the cgiauthurl if they already have a login session.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/httpauth.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/httpauth.pm b/IkiWiki/Plugin/httpauth.pm index 868862f4f..cb488449d 100644 --- a/IkiWiki/Plugin/httpauth.pm +++ b/IkiWiki/Plugin/httpauth.pm @@ -84,6 +84,8 @@ sub canedit ($$$) { my $session=shift; if (! defined $cgi->remote_user() && + (! defined $session->param("name") || + ! IkiWiki::userinfo_get($session->param("name"), "regdate")) && defined $config{httpauth_pagespec} && length $config{httpauth_pagespec} && defined $config{cgiauthurl} && |