To add a user to the auth environment you use the addUser() method of the authManager
object returned by auth.setup()
.
The addUser() method takes the parameters username, password, firstname, surname, email. Only username and password are required.
using the authManager
object created in the example above:
authManager.addUser('test', '123') authManager.addUser( 'john', 'bananas', 'John', 'Smith', 'johnsmith@example.com' )
See About this document... for information on suggesting changes.