summaryrefslogtreecommitdiff
path: root/src/leap/gui/wizard.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/gui/wizard.py')
-rw-r--r--src/leap/gui/wizard.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/gui/wizard.py b/src/leap/gui/wizard.py
index 72e791b3..f8a1f833 100644
--- a/src/leap/gui/wizard.py
+++ b/src/leap/gui/wizard.py
@@ -111,12 +111,16 @@ class Wizard(QtGui.QWizard):
self._register)
self._username = None
+ self._password = None
self._checker_thread = checker
def get_username(self):
return self._username
+ def get_password(self):
+ return self._password
+
def _enable_check(self, text):
self.ui.btnCheck.setEnabled(len(self.ui.lnProvider.text()) != 0)
@@ -186,6 +190,7 @@ class Wizard(QtGui.QWizard):
username.encode("utf8"),
password.encode("utf8"))])
self._username = username
+ self._password = password
self._set_register_status(self.tr("Starting registration..."))
else:
self.ui.btnRegister.setEnabled(True)
@@ -199,6 +204,7 @@ class Wizard(QtGui.QWizard):
self.button(QtGui.QWizard.BackButton).setEnabled(False)
else:
self._username = None
+ self._password = None
error_msg = self.tr("Unknown error")
try:
error_msg = req.json().get("errors").get("login")[0]