diff options
author | hellekin <hellekin@cepheide.org> | 2013-03-04 06:59:41 -0300 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-03-06 14:46:01 -0500 |
commit | db59f4448e66fbed3fbfe2ace074cf75548f1a7e (patch) | |
tree | 3f73e3dde7eabc6e6b365bc8209588579d1e01f3 /actions | |
parent | ed65ac543af53a9b3251a9e87a795662265baacf (diff) | |
download | elgg-db59f4448e66fbed3fbfe2ace074cf75548f1a7e.tar.gz elgg-db59f4448e66fbed3fbfe2ace074cf75548f1a7e.tar.bz2 |
Actually delete user when registration fails
Diffstat (limited to 'actions')
-rw-r--r-- | actions/register.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php index 810ceaf27..73926232c 100644 --- a/actions/register.php +++ b/actions/register.php @@ -45,7 +45,9 @@ if (elgg_get_config('allow_registration')) { // @todo should registration be allowed no matter what the plugins return? if (!elgg_trigger_plugin_hook('register', 'user', $params, TRUE)) { + $ia = elgg_set_ignore_access(true); $new_user->delete(); + elgg_set_ignore_access($ia); // @todo this is a generic messages. We could have plugins // throw a RegistrationException, but that is very odd // for the plugin hooks system. |