exp:userpasswordchangerequired
Change password at next sign-in: show, set or clear the mark of a user account.
Script bin/php/userpasswordchangerequired.php, code in kernel/private/classes/commands/userpasswordchangerequired.php. Run it from the installation root, as the user the web server runs as:
./console exp:userpasswordchangerequired --help
./console exp:user-password-change-required --help
php bin/php/userpasswordchangerequired.php --helpHelp text
Change password at next sign-in
Shows, sets or clears the mark that sends a user to the password change form after
their next sign-in, before any other page, until they set a new password (which clears
it). Guide: doc/eng-us/features/6.0/password-change-at-next-sign-in.md
./console exp:user-password-change-required status --login=editor1
./console exp:user-password-change-required set --login=editor1
./console exp:user-password-change-required clear --user-id=14
./console exp:user-password-change-required status --login=editor1 --json
In demo mode (EXP_DEMO_MODE=1) the mark of an administrator is kept but ignored.
Exit code: 0 done, 1 no such user, 2 usage error.Options
| Option | Value | Help |
|---|---|---|
--login | required | The login of the account |
--user-id | required | The user (content object) id of the account |
--json | One JSON object instead of the text |
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: [ACTION].
Related
Generated by ./console exp:help:examples from bin/php/userpasswordchangerequired.php, kernel/private/classes/commands/userpasswordchangerequired.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.