Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.9.0
-
Fix Version/s: 5.10.0-b1
-
Component/s: Staff Interface
-
Labels:None
Description
Ok to bump to 5.11 if necessary.
Right now Blesta can be installed via CLI:
php ./index.php install -dbhost DATABASE_HOST -dbport DATABASE_PORT -dbname DATABASE_NAME -dbuser DATABASE_USER -dbpass DATABASE_PASS -hostname WEBSITE_HOSTNAME -docroot DOCUMENT_ROOT_PATH
But creating the first staff account is a manual process. The user must visit the installation and fill out the following details:
- License Key: Enter Key or select to start a free trial
- First Name
- Last Name
- Username
- Password
- Confirm Password
If we add parameters for these fields, the installer could complete the entire installation and the user can simply log in. A few notes:
- license_key (If not provided, fetch a free trial. If provided, use that key)
- first
- last
- username (if not provided, default to admin)
- password (only need to ask for this once)
If there is a license issue, that should be suppressed until the user tries to login and shouldn't prevent the creation of the staff account.