]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/httpauth.pm
httpauth: Avoid redirecting the user to the cgiauthurl if they already have a login...
[ikiwiki.git] / IkiWiki / Plugin / httpauth.pm
index 868862f4fa56cb1053babc756f2608409608ca4d..cb488449dd680b2ae36aefde23636ba3fdfe6ab8 100644 (file)
@@ -84,6 +84,8 @@ sub canedit ($$$) {
        my $session=shift;
 
        if (! defined $cgi->remote_user() &&
        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} &&
            defined $config{httpauth_pagespec} &&
            length $config{httpauth_pagespec} &&
            defined $config{cgiauthurl} &&