1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Reject passwords shorter than 6 characters

This commit is contained in:
tux3 2015-06-04 15:22:14 +02:00
parent 5f94f33117
commit 10ce65c22b

View File

@ -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."));