Browse Source

Reject passwords shorter than 6 characters

pull/1793/head
tux3 10 years ago
parent
commit
10ce65c22b
  1. 6
      src/widget/loginscreen.cpp

6
src/widget/loginscreen.cpp

@ -76,6 +76,12 @@ void LoginScreen::onCreateNewProfile() @@ -76,6 +76,12 @@ void LoginScreen::onCreateNewProfile()
return;
}
if (pass.size() < 6)
{
QMessageBox::critical(this, tr("Couldn't create a new profile"), tr("The password must be at least 6 characters."));
return;
}
if (ui->newPassConfirm->text() != pass)
{
QMessageBox::critical(this, tr("Couldn't create a new profile"), tr("The passwords are different."));

Loading…
Cancel
Save