izartu API

adduser.php

CLI: create a user account.

Every user is created here. Type the owner role for the first one: an empty answer gives user.

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, the password twice and without showing it on a terminal; hashes it with password_hash() and inserts the user.

Table of Contents

On this page
  • Table Of Contents

Search results