[users] Do not log the password in plain text

This commit is contained in:
Adriaan de Groot 2019-11-08 13:23:24 +01:00
parent 445d8501a7
commit 0d7e19d5e9

View File

@ -524,7 +524,7 @@ UsersPage::addPasswordCheck( const QString& key, const QVariant& value )
{ {
m_passwordChecks.push_back( PasswordCheck( m_passwordChecks.push_back( PasswordCheck(
[]() { return QCoreApplication::translate( "PWQ", "Password is empty" ); }, []() { return QCoreApplication::translate( "PWQ", "Password is empty" ); },
[]( const QString& s ) { return ( ( cDebug() << "Checking pwd" << s << "for empty" ), !s.isEmpty() ); }, []( const QString& s ) { return !s.isEmpty(); },
PasswordCheck::Weight( 1 ) ) ); PasswordCheck::Weight( 1 ) ) );
} }
} }