Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-07-05 17:42:33 +0400
committerAleksander Machniak <alec@alec.pl>2012-07-05 17:42:33 +0400
commit1c0ce1fe522c290ef59c45226d9f1f9ea1d5ec20 (patch)
tree3a7291b30ba8040f10234f61cf807f803ac49de2 /index.php
parente466f67c33c0a8fff47d470e3ca3e63a731dafba (diff)
Plugin API: Add 'unauthenticated' hook (#1488138)
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.php b/index.php
index 54b87ce0a..ef5733a12 100644
--- a/index.php
+++ b/index.php
@@ -211,8 +211,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 {