aboutsummaryrefslogtreecommitdiff
path: root/actions/useradd.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/useradd.php')
-rw-r--r--actions/useradd.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/useradd.php b/actions/useradd.php
index f20b9d070..8e588d073 100644
--- a/actions/useradd.php
+++ b/actions/useradd.php
@@ -6,6 +6,8 @@
* @subpackage Core
*/
+elgg_make_sticky_form('useradd');
+
// Get variables
$username = get_input('username');
$password = get_input('password');
@@ -28,7 +30,10 @@ try {
$new_user->makeAdmin();
}
+ elgg_clear_sticky_form('useradd');
+
$new_user->admin_created = TRUE;
+ // @todo ugh, saving a guid as metadata!
$new_user->created_by_guid = elgg_get_logged_in_user_guid();
$subject = elgg_echo('useradd:subject');