summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-09-19 12:55:32 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-09-19 13:00:11 -0300
commitde766834e4a0148d7ca8ededaf84194dc7a5fb44 (patch)
tree58e77192c63932c2fed9765fa91be12106ae879b
parente21282f20abd475029bb2a682bcf7e9d314bd6a3 (diff)
Username case problem at login. Closes #3857.
-rw-r--r--changes/bug-3857_username-case-problem1
-rw-r--r--src/leap/bitmask/crypto/srpauth.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/changes/bug-3857_username-case-problem b/changes/bug-3857_username-case-problem
new file mode 100644
index 00000000..3b8ef7b2
--- /dev/null
+++ b/changes/bug-3857_username-case-problem
@@ -0,0 +1 @@
+ o Fix username case problem at register/login. Closes #3857.
diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py
index 776fb2cc..95dd168d 100644
--- a/src/leap/bitmask/crypto/srpauth.py
+++ b/src/leap/bitmask/crypto/srpauth.py
@@ -200,8 +200,6 @@ class SRPAuth(QtCore.QObject):
"""
logger.debug("Authentication preprocessing...")
- username = username.lower()
-
self._srp_user = self._srp.User(username,
password,
self._hashfun,
@@ -506,7 +504,7 @@ class SRPAuth(QtCore.QObject):
leap_assert(self.get_session_id() is None, "Already logged in")
# User credentials stored for password changing checks
- self._username = username.lower()
+ self._username = username
self._password = password
d = threads.deferToThread(self._authentication_preprocessing,
@@ -615,7 +613,7 @@ class SRPAuth(QtCore.QObject):
:param password: password for this user
:type password: str
"""
-
+ username = username.lower()
d = self.__instance.authenticate(username, password)
d.addCallback(self._gui_notify)
d.addErrback(self._errback)