exp:userlogincheck
Unique logins: list the logins more than one user account has; --fix-index adds the unique index on ezuser.login once there are none.
Script bin/php/userlogincheck.php, code in kernel/private/classes/commands/userlogincheck.php. Run it from the installation root, as the user the web server runs as:
./console exp:userlogincheck --help
./console exp:user-login-check --help
php bin/php/userlogincheck.php --helpHelp text
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
| Option | Value | Help |
|---|---|---|
--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 |
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 ...).
Related
Generated by ./console exp:help:examples from bin/php/userlogincheck.php, kernel/private/classes/commands/userlogincheck.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.