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

Renamed "email" to "salt

parent fa4f6cb0
Branches
Tags
No related merge requests found
......@@ -20,7 +20,7 @@
<item>
<widget class="QStackedWidget" name="stacked_pages">
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="page_init">
<layout class="QVBoxLayout" name="verticalLayout_4">
......@@ -48,7 +48,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Account name</string>
<string>Account name (uid)</string>
</property>
</widget>
</item>
......@@ -132,9 +132,9 @@
<layout class="QHBoxLayout" name="horizontalLayout_5"/>
</item>
<item>
<widget class="QLineEdit" name="edit_email">
<widget class="QLineEdit" name="edit_salt">
<property name="placeholderText">
<string>Your email</string>
<string>Your salt</string>
</property>
</widget>
</item>
......@@ -363,7 +363,7 @@
</hints>
</connection>
<connection>
<sender>edit_email</sender>
<sender>edit_salt</sender>
<signal>textChanged(QString)</signal>
<receiver>AccountConfigurationDialog</receiver>
<slot>action_edit_account_key()</slot>
......
......@@ -65,7 +65,7 @@ class StepPageKey(Step):
if len(self.config_dialog.edit_password.text()) < 2:
return False
if len(self.config_dialog.edit_email.text()) < 2:
if len(self.config_dialog.edit_salt.text()) < 2:
return False
if len(self.config_dialog.edit_password.text()) < 6:
......@@ -80,7 +80,7 @@ class StepPageKey(Step):
return True
def process_next(self):
salt = self.config_dialog.edit_email.text()
salt = self.config_dialog.edit_salt.text()
password = self.config_dialog.edit_password.text()
self.config_dialog.account.salt = salt
self.config_dialog.account.pubkey = SigningKey(salt, password).pubkey
......@@ -180,7 +180,7 @@ class ProcessConfigureAccount(QDialog, Ui_AccountConfigurationDialog):
self.button_next.setEnabled(False)
def action_show_pubkey(self):
salt = self.edit_email.text()
salt = self.edit_salt.text()
password = self.edit_password.text()
pubkey = SigningKey(salt, password).pubkey
QMessageBox.information(self, "Public key",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment