Skip to the content
Documentation

exp:resetuserpassword

No ratings yet

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

Summary

Reset a user password with admin authentication or root bypass.

Usage

./console exp:resetuserpassword [options]
php bin/php/resetuserpassword.php [options]

Help

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

Usage: resetuserpassword.php [OPTIONS]

Reset a user password with admin authentication or root bypass.

Admin authentication (one of these two):
  -a <login>            Admin login used to authorize the reset
  -ap <password>        Password for the admin login

Root bypass (OS root user only):
  -r, --allow-root-user Skip admin auth and reset any user

Target user and password:
  -u <login>            Target login to reset (default: admin)
  -p <password>         New password for the target user
  -g, --generate        Generate a random password instead of -p
  -l <length>           Length of generated password (default: 16)

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/resetuserpassword.php, kernel/private/classes/commands/resetuserpassword.php

See also

Generated example: exp:resetuserpassword

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.