From 5366cd6a4ca12203147407be01a80817fa37ea3a Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 3 Oct 2008 16:11:13 +0000 Subject: 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 --- actions/register.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'actions') 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)); -- cgit v1.2.3