diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-05 21:38:27 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-05 21:38:27 +0000 |
commit | 8e2fb374e03ee2122fcfb678fd851673ca86eefa (patch) | |
tree | 125bb60c3515faf325cee613924033d03a8eebb1 /IkiWiki | |
parent | 06e74035770af03aec7b077baf15b34eeef7a8eb (diff) | |
download | ikiwiki-8e2fb374e03ee2122fcfb678fd851673ca86eefa.tar ikiwiki-8e2fb374e03ee2122fcfb678fd851673ca86eefa.tar.gz |
* Add sessioncgi hook.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 5 |
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); } |