summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcmail.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-14 19:26:34 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-14 19:26:34 +0000
commita5e39d3f44dec5686b1e9035dca18ed52cee3105 (patch)
tree2b0cfec36d00d591c7d90c2d2f624d8ad9f7d265 /roundcubemail/program/include/rcmail.php
parentd0553956fda180f534de3a928f688c3d4e242d15 (diff)
Trigger 'create_identity' when creating a new user; Allow 'create_user' hook to abort the operation
git-svn-id: https://svn.roundcube.net/trunk@2481 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
-rw-r--r--roundcubemail/program/include/rcmail.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index 6ed095062..06f50a13f 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/program/include/rcmail.php
@@ -491,6 +491,13 @@ class rcmail
// get existing mailboxes (but why?)
// $a_mailboxes = $this->imap->list_mailboxes();
}
+ else {
+ raise_error(array(
+ 'code' => 600,
+ 'type' => 'php',
+ 'message' => "Failed to create a user record. Maybe aborted by a plugin?"
+ ), true, false);
+ }
}
else {
raise_error(array(