exp:expuserenable
Enable a disabled user account again, as Edit user settings does; an account that was never activated is approved with exp:user:approve instead (a dry run unless --apply).
Script bin/php/expuserenable.php, code in kernel/private/classes/commands/expuserenable.php. Run it from the installation root, as the user the web server runs as:
./console exp:expuserenable --help
./console exp:user:enable --help
php bin/php/expuserenable.php --helpHelp text
Enable a user account
Enables a disabled account again through the setsettings operation of the user module, as Edit
user settings does. An account that was never activated (it still has its activation key) is not
enabled here: exp:user:approve finishes its registration, with the mails and steps that belong to
it. Without --apply nothing is changed.
./console exp:user:enable jane
./console exp:user:enable jane --applyOptions
| Option | Value | Help |
|---|---|---|
--apply | Make the change; without it the command only lists what it would change (a dry run) | |
--dry-run | The default, kept for scripts that pass it: list what would change, change nothing | |
--as | required | Act as this user (login, e-mail or id; default the user of [UserSettings] UserCreatorID); the audit records it as who did it |
--format | required | text (default) or json (the machine output exp-user/1) |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Arguments: [user].
Related
Generated by ./console exp:help:examples from bin/php/expuserenable.php, kernel/private/classes/commands/expuserenable.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.