aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/register.php8
1 files changed, 8 insertions, 0 deletions
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 {