summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-09-19 16:00:07 -0400
committerKali Kaneko <kali@leap.se>2013-09-19 16:00:07 -0400
commit3d6371adb2bf1abd3d09e9f1ff047cc3421d3733 (patch)
tree6cc262ce10dabf50ba542b095c628e9bce8b1746 /src
parente23e0d5eb5dc5d498c20c8260cdc01fe94a72bbf (diff)
parentde766834e4a0148d7ca8ededaf84194dc7a5fb44 (diff)
Merge remote-tracking branch 'ivan-github/bug/3857_username-case-problem' into develop
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/crypto/srpauth.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py
index 8477ea9e..bf85f75c 100644
--- a/src/leap/bitmask/crypto/srpauth.py
+++ b/src/leap/bitmask/crypto/srpauth.py
@@ -203,8 +203,6 @@ class SRPAuth(QtCore.QObject):
"""
logger.debug("Authentication preprocessing...")
- username = username.lower()
-
self._srp_user = self._srp.User(username,
password,
self._hashfun,
@@ -509,7 +507,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,
@@ -618,7 +616,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)