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

Allow creating unencrypted accounts again

This commit is contained in:
tux3 2015-06-04 18:41:58 +02:00
parent 67e85b3ddc
commit ea45d4617f
2 changed files with 1 additions and 4 deletions

View File

@ -76,7 +76,7 @@ void LoginScreen::onCreateNewProfile()
return;
}
if (pass.size() < 6)
if (pass.size()!=0 && pass.size() < 6)
{
QMessageBox::critical(this, tr("Couldn't create a new profile"), tr("The password must be at least 6 characters."));
return;

View File

@ -375,9 +375,6 @@ margin-bottom:45px;</string>
</item>
<item>
<widget class="QLineEdit" name="newPass">
<property name="maxLength">
<number>64</number>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>