aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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