aboutsummaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:27:58 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:27:58 +0000
commit42b2d6c266866bbfac07c894d7fe3e6480915ee8 (patch)
tree645fe72a49f865df81d2b500d24fdf8d24cc88e8 /actions/register.php
parent15d9fc69cf77f3bd967ce444413b3b8422576e9a (diff)
downloadelgg-42b2d6c266866bbfac07c894d7fe3e6480915ee8.tar.gz
elgg-42b2d6c266866bbfac07c894d7fe3e6480915ee8.tar.bz2
User validation no longer occurs on first install
git-svn-id: https://code.elgg.org/elgg/trunk@3133 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php
index 748c06ce6..fdf2596fc 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -49,8 +49,10 @@
$new_user->admin = 'yes';
}
- // Send user validation request on register only
- request_user_validation($guid);
+ // Send user validation request on register only
+ global $registering_admin;
+ if (!$registering_admin)
+ request_user_validation($guid);
if (!$new_user->admin)
$new_user->disable('new_user'); // Now disable if not an admin