Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

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.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/userlogincheck.md

On this page

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 --help

Help 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

OptionValueHelp
--fix-indexAdd the unique index on ezuser.login when no duplicates are found
--jsonOne JSON object instead of the text
--show-loginsShow 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 ...).


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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x