Browse Source

Allow creating unencrypted accounts again

pull/1793/head
tux3 10 years ago
parent
commit
ea45d4617f
  1. 2
      src/widget/loginscreen.cpp
  2. 3
      src/widget/loginscreen.ui

2
src/widget/loginscreen.cpp

@ -76,7 +76,7 @@ void LoginScreen::onCreateNewProfile()
return; 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.")); QMessageBox::critical(this, tr("Couldn't create a new profile"), tr("The password must be at least 6 characters."));
return; return;

3
src/widget/loginscreen.ui

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

Loading…
Cancel
Save