Skip to the content
Documentation

exp:expuserresendactivation

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Send the activation mail again, with a new key, to an account that never activated, as Users > Unactivated does (a dry run unless --apply)

Usage

./console exp:expuserresendactivation [options]
php bin/php/expuserresendactivation.php [options]
./console exp:user:resend-activation [options]

Aliases

exp:user:resend-activation

Help

The output of ./console help exp:expuserresendactivation (the script run with --help), without the standard options:

Usage: bin/php/expuserresendactivation.php [OPTION]... [USER]
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 --apply


Options:
  --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=VALUE      Act as this user (login, e-mail or id; default the user of [UserSettings] UserCreatorID); the audit records it as who did it
  --format=VALUE  text (default) or json (the machine output exp-user/1)

Options

Option Value Description
--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)

Arguments

[user]

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/expuserresendactivation.php, kernel/private/classes/commands/expuserresendactivation.php

See also

Generated example: exp:expuserresendactivation

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.