aboutsummaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 16:11:13 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 16:11:13 +0000
commit5366cd6a4ca12203147407be01a80817fa37ea3a (patch)
tree690afeb8cfd3d4ca1cb41700b40fe2454b29b10d /actions/register.php
parent8dd1515697fcef1968d062c18222eb21d520f5e2 (diff)
downloadelgg-5366cd6a4ca12203147407be01a80817fa37ea3a.tar.gz
elgg-5366cd6a4ca12203147407be01a80817fa37ea3a.tar.bz2
Fixes #311, closes #345: Validation now called via event 'user', 'validate'. Email validation now a plugin.
git-svn-id: https://code.elgg.org/elgg/trunk@2177 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/register.php b/actions/register.php
index eb5f24c98..7a8a01c5d 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -47,12 +47,11 @@
$new_user->admin = 'yes';
}
- if (!$new_user->admin)
- $new_user->disable('new_user'); // Now disable if not an admin
-
// Send user validation request on register only
request_user_validation($guid);
+ if (!$new_user->admin)
+ $new_user->disable('new_user'); // Now disable if not an admin
system_message(sprintf(elgg_echo("registerok"),$CONFIG->sitename));