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:
parent
5f94f33117
commit
10ce65c22b
|
@ -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…
Reference in New Issue
Block a user