diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-07-05 15:42:33 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-07-05 15:43:18 +0200 |
commit | ae2e88bc0e0883b750fb614f3c95e7c3f6200b63 (patch) | |
tree | f4bc500387772e48929a99157b9be097d3124e6f /index.php | |
parent | 2e32add616487b66c902e1607e083b749792cdbd (diff) |
Plugin API: Add 'unauthenticated' hook (#1488138)
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -213,8 +213,10 @@ if (empty($RCMAIL->user->ID)) { if ($session_error || $_REQUEST['_err'] == 'session') $OUTPUT->show_message('sessionerror', 'error', null, true, -1); - $RCMAIL->set_task('login'); - $OUTPUT->send('login'); + $plugin = $RCMAIL->plugins->exec_hook('unauthenticated', array('task' => 'login', 'error' => $session_error)); + + $RCMAIL->set_task($plugin['task']); + $OUTPUT->send($plugin['task']); } // CSRF prevention else { |