Api/auth.useradd()

From Minux Wiki
Revision as of 23:10, 24 September 2024 by Shorun (talk | contribs) (Created page with "this api is part of the auth client side package and is used to create new users on the rednet network '''usage:''' auth.useradd(username, password, ADM) '''output:''' creates a new user with username and password, if ADM is provided as a string this user will be an admin. eg: auth.useradd("foo", "bar") creates a user with the name foo and password bar auth.useradd("foo", "bar", "ADM") creates an admin user with the name foo and password bar")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this api is part of the auth client side package and is used to create new users on the rednet network


usage:

auth.useradd(username, password, ADM)


output:

creates a new user with username and password, if ADM is provided as a string this user will be an admin.

eg: auth.useradd("foo", "bar") creates a user with the name foo and password bar

auth.useradd("foo", "bar", "ADM") creates an admin user with the name foo and password bar