aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-01 14:40:05 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-01 14:40:05 +0000
commit2957a0141a14fa295a19c83f0614ff52ee91727a (patch)
treef007fd76882bffd68d15977b450833072e5a5f8f /engine
parentb47a737618bca590aafe29ee51d98490ad4003e9 (diff)
downloadelgg-2957a0141a14fa295a19c83f0614ff52ee91727a.tar.gz
elgg-2957a0141a14fa295a19c83f0614ff52ee91727a.tar.bz2
Updated the registration function
git-svn-id: https://code.elgg.org/elgg/trunk@311 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/users.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 2c2465ced..59754fee6 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -457,7 +457,15 @@
return false;
}
-
+ /**
+ * Registers a user, returning false if the username already exists
+ *
+ * @param string $username The username of the new user
+ * @param string $password The password
+ * @param string $name The user's display name
+ * @param string $email Their email address
+ * @return int|false The new user's GUID; false on failure
+ */
function register_user(string $username, string $password, string $name, string $email) {
// Load the configuration