security.createUser
Creates an user.
js
security.createUser(name, email, mobile)Parameters
name- Name of the user.email- Email address of the user.mobile- Mobile number of the user.send_welcome_email- Optional Boolean (true, false) Whether or not to send welcome email to user.
Example
js
let user = security.createUser("admin", "admin@modlr.co", "0123 456 789", true);