Skip to content
Snippets Groups Projects
Commit 8f35e303 authored by inso's avatar inso
Browse files

Added enhancement #65

parent 5652bad7
No related branches found
No related tags found
No related merge requests found
......@@ -65,14 +65,13 @@ class StepPageKey(Step):
super().__init__(config_dialog)
def is_valid(self):
if len(self.config_dialog.edit_password.text()) < 2:
return False
if len(self.config_dialog.edit_salt.text()) < 2:
if len(self.config_dialog.edit_salt.text()) < 6:
self.config_dialog.label_info.setText("Warning : salt is too short")
return False
if len(self.config_dialog.edit_password.text()) < 6:
self.config_dialog.label_info.setText("Warning : password is too short")
return False
if self.config_dialog.edit_password.text() != \
self.config_dialog.edit_password_repeat.text():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment