From 4e80f7476e20887f1a8f43fd0c0bf70a031c774b Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 19 Nov 2010 11:53:19 +0000 Subject: Closes #2653 users are logged in on registration and login exceptions are caught for unvalidated users git-svn-id: http://code.elgg.org/elgg/trunk@7345 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/register.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/actions/register.php b/actions/register.php index 52176c5de..1a0954e3b 100644 --- a/actions/register.php +++ b/actions/register.php @@ -54,6 +54,14 @@ if ($CONFIG->allow_registration) { system_message(elgg_echo("registerok", array($CONFIG->sitename))); + // if exception thrown, this probably means there is a validation + // plugin that has disabled the user + try { + login($new_user); + } catch (LoginException $e) { + // do nothing + } + // Forward on success, assume everything else is an error... forward(); } else { -- cgit v1.2.3