From a5e39d3f44dec5686b1e9035dca18ed52cee3105 Mon Sep 17 00:00:00 2001 From: thomasb Date: Thu, 14 May 2009 19:26:34 +0000 Subject: 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 --- roundcubemail/program/include/rcmail.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roundcubemail/program/include/rcmail.php') 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( -- cgit v1.2.3