From 16e429db64b00e4f1d7a3f703f4bfef7bb59e79e Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 28 Jan 2010 01:48:31 +0000 Subject: Fixes #1049, Fixes #1435: Admin-created users and first admin user are marked as validated to prevent inaccurate "Please validate your account" messages and emails. git-svn-id: http://code.elgg.org/elgg/trunk@3851 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/users.php b/engine/lib/users.php index 512b8a6e6..0171e838d 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1298,7 +1298,7 @@ function register_user($username, $password, $name, $email, $allow_multiple_emai global $registering_admin; if (!$have_admin) { $user->admin = true; - $user->validated = 'admin'; + set_user_validation_status($user->getGUID(), TRUE, 'first_run'); datalist_set('admin_registered', 1); $registering_admin = true; } else { -- cgit v1.2.3