exp:userlogincheck
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
Unique logins: list the logins more than one user account has; --fix-index adds the unique index on ezuser.login once there are none
Usage
./console exp:userlogincheck [options] php bin/php/userlogincheck.php [options] ./console exp:user-login-check [options]
Aliases
exp:user-login-check
Help
The output of ./console help exp:userlogincheck (the script run with --help), without the standard options:
Usage: bin/php/userlogincheck.php [OPTION]... Unique logins Lists the logins that more than one user account has: rows the unique index on ezuser.login would refuse on this database engine, and logins that differ only in case, which signing in cannot tell apart. Without --fix-index nothing is changed. Logins are shown shortened (first letter and length); --show-logins shows them in full. ./console exp:user-login-check ./console exp:user-login-check --json ./console exp:user-login-check --fix-index --fix-index adds the unique index only after a clean report and refuses otherwise. Exit code: 0 clean (or index added), 1 duplicates found (or index refused), 2 error. Options: --fix-index Add the unique index on ezuser.login when no duplicates are found --json One JSON object instead of the text --show-logins Show the logins in full instead of shortened
Options
| Option | Value | Description |
|---|---|---|
| --fix-index | - | Add the unique index on ezuser.login when no duplicates are found |
| --json | - | One JSON object instead of the text |
| --show-logins | - | Show the logins in full instead of shortened |
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/userlogincheck.php, kernel/private/classes/commands/userlogincheck.php
See also
Generated example: exp:userlogincheck
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment