[users] Document passwordRequirements and code

This commit is contained in:
Adriaan de Groot 2018-05-23 03:30:51 -04:00
parent 3a59574128
commit ed15edabf9
2 changed files with 8 additions and 2 deletions

View File

@ -52,6 +52,12 @@ public:
void setAutologinDefault( bool checked );
void setReusePasswordDefault( bool checked );
/** @brief Process entries in the passwordRequirements config entry
*
* Called once for each item in the config entry, which should
* be a key-value pair. What makes sense as a value depends on
* the key. Supported keys are documented in users.conf.
*/
void addPasswordCheck( const QString& key, const QVariant& value );
protected slots:

View File

@ -72,5 +72,5 @@ passwordRequirements:
minLength: -1 # Password at least this many characters
maxLength: -1 # Password at most this many characters
libpwquality:
- minlen=8
- minclass=2
- minlen=0
- minclass=0