summaryrefslogtreecommitdiff
path: root/src/leap/gui/wizard.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-03-08 14:24:05 -0300
committerTomás Touceda <chiiph@leap.se>2013-03-08 14:24:05 -0300
commite4e5f35c3fc7ff02bc20a6ef7eaffae09f485061 (patch)
tree01f4775d17ff7c87153eb5b1beaf1d5d2d289481 /src/leap/gui/wizard.py
parent926575bc811e8382100695a3396da7191fb43eb3 (diff)
Add keyring and username/password saving capabilities
Also: - Fix translations in SRPAuth - Support non-ascii passwords - Make the server check if the characters are allowed, just check for easy passwords
Diffstat (limited to 'src/leap/gui/wizard.py')
-rw-r--r--src/leap/gui/wizard.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/leap/gui/wizard.py b/src/leap/gui/wizard.py
index fa705645..72e791b3 100644
--- a/src/leap/gui/wizard.py
+++ b/src/leap/gui/wizard.py
@@ -148,13 +148,6 @@ class Wizard(QtGui.QWizard):
"""
message = None
- try:
- username.encode("ascii")
- password.encode("ascii")
- except:
- message = self.tr(u"Refrain from using non "
- u"ASCII characters like á, ñ, æ")
-
if message is not None and password != password2:
message = self.tr("Passwords don't match")
@@ -189,7 +182,9 @@ class Wizard(QtGui.QWizard):
register.registration_finished.connect(
self._registration_finished)
self._checker_thread.add_checks(
- [partial(register.register_user, username, password)])
+ [partial(register.register_user,
+ username.encode("utf8"),
+ password.encode("utf8"))])
self._username = username
self._set_register_status(self.tr("Starting registration..."))
else: