aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-05 21:38:27 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-05 21:38:27 +0000
commit8e2fb374e03ee2122fcfb678fd851673ca86eefa (patch)
tree125bb60c3515faf325cee613924033d03a8eebb1 /IkiWiki
parent06e74035770af03aec7b077baf15b34eeef7a8eb (diff)
downloadikiwiki-8e2fb374e03ee2122fcfb678fd851673ca86eefa.tar
ikiwiki-8e2fb374e03ee2122fcfb678fd851673ca86eefa.tar.gz
* Add sessioncgi hook.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 2150ea95b..144ad2198 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -688,7 +688,10 @@ sub cgi (;$$) { #{{{
print gettext("You are banned.");
cgi_savesession($session);
}
- elsif ($do eq 'signin') {
+
+ run_hooks(sessioncgi => sub { shift->($q, $session) });
+
+ if ($do eq 'signin') {
cgi_signin($q, $session);
cgi_savesession($session);
}