aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/users.php2
1 files changed, 1 insertions, 1 deletions
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 {