exp:expuserresendactivation
Send the activation mail again, with a new key, to an account that never activated, as Users > Unactivated does (a dry run unless --apply).
Script bin/php/expuserresendactivation.php, code in kernel/private/classes/commands/expuserresendactivation.php. Run it from the installation root, as the user the web server runs as:
./console exp:expuserresendactivation --help
./console exp:user:resend-activation --help
php bin/php/expuserresendactivation.php --helpHelp text
Send the activation mail again
For an account that never activated (disabled, with its activation key): a new key replaces the
old one, so an older mail's link stops working, and the activation mail goes to the account's
address, as Resend in Users > Unactivated does. To activate the account without the person, use
exp:user:approve. Without --apply no mail is sent.
./console exp:user:resend-activation member1
./console exp:user:resend-activation member1 --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/expuserresendactivation.php, kernel/private/classes/commands/expuserresendactivation.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.