adduser.php
CLI: create a user account.
Users can be created from the command line. This is how the first user (the owner) is created.
Run it: docker compose exec app php /var/www/izartu/private/cli/adduser.php (Docker) php private/cli/adduser.php (bare PHP)
Prompts for email, username, password and role, hashes the password with
password_hash() and inserts the user.
Table of Contents
Functions
- prompt() : string
Functions
prompt()
prompt(string $label) : string
Parameters
- $label : string