aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 10:43:57 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 10:43:57 +0000
commitb0b096489393d505e105ba74b09a72afcfb7c1cf (patch)
tree7c102c88f1b0bf43e5c5464ab3c238343091abce /actions
parenta943cc400d20391c63b1a967d43e2a86ae63765d (diff)
downloadelgg-b0b096489393d505e105ba74b09a72afcfb7c1cf.tar.gz
elgg-b0b096489393d505e105ba74b09a72afcfb7c1cf.tar.bz2
Fixes #238: Problem was caused by authenticate not having the user email validated flag set.
Introduced new flag ->admin_created to distinguish between the two types. git-svn-id: https://code.elgg.org/elgg/trunk@1883 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r--actions/useradd.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/actions/useradd.php b/actions/useradd.php
index f7a96b037..b59dc36b1 100644
--- a/actions/useradd.php
+++ b/actions/useradd.php
@@ -35,12 +35,11 @@
) &&
($guid = register_user($username, $password, $name, $email, true))
) {
+ $new_user = get_entity($guid);
if (($guid) && ($admin))
- {
-
- $new_user = get_entity($guid);
$new_user->admin = 'yes';
- }
+
+ $new_user->admin_created = true;
system_message(sprintf(elgg_echo("adduser:ok"),$CONFIG->sitename));
} else {