[users] Remove TODO since it doesn't make sense

- the two explicit checks are the ones that handle *two*
   strings as special cases; all the other checks from
   the password-requirements system only handle the one string.
This commit is contained in:
Adriaan de Groot 2019-11-01 13:17:31 +01:00
parent 93eb169ea5
commit 7d25173afb

View File

@ -400,7 +400,6 @@ UsersPage::onPasswordTextChanged( const QString& )
QString pw2 = ui->textBoxUserVerifiedPassword->text(); QString pw2 = ui->textBoxUserVerifiedPassword->text();
m_readyPassword = true; m_readyPassword = true;
// TODO: 3.3: remove empty-check and leave it to passwordRequirements
if ( pw1.isEmpty() && pw2.isEmpty() ) if ( pw1.isEmpty() && pw2.isEmpty() )
{ {
ui->labelUserPasswordError->clear(); ui->labelUserPasswordError->clear();
@ -445,7 +444,6 @@ UsersPage::onRootPasswordTextChanged( const QString& )
QString pw2 = ui->textBoxVerifiedRootPassword->text(); QString pw2 = ui->textBoxVerifiedRootPassword->text();
m_readyRootPassword = true; m_readyRootPassword = true;
// TODO: 3.3: remove empty-check and leave it to passwordRequirements
if ( pw1.isEmpty() && pw2.isEmpty() ) if ( pw1.isEmpty() && pw2.isEmpty() )
{ {
ui->labelRootPasswordError->clear(); ui->labelRootPasswordError->clear();