From 2957a0141a14fa295a19c83f0614ff52ee91727a Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 1 Apr 2008 14:40:05 +0000 Subject: Updated the registration function git-svn-id: https://code.elgg.org/elgg/trunk@311 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engine') 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 -- cgit v1.2.3