summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/crypto
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-08-22 15:52:08 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-08-22 15:52:08 -0300
commit5f1b8de2cf8c00a0f98c9bfe203794ffd367175b (patch)
treed4f441e5b25b6d30e857dfa7d7d74d408d58b637 /src/leap/bitmask/crypto
parent745d48a17703991854d6242cfdc2772e7a327569 (diff)
parent47b7de00d45872f1656d4db2d5a8af3070478c6c (diff)
Merge remote-tracking branch 'chiiph/bug/lower_case_username' into develop
Diffstat (limited to 'src/leap/bitmask/crypto')
-rw-r--r--src/leap/bitmask/crypto/srpauth.py3
-rw-r--r--src/leap/bitmask/crypto/srpregister.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py
index 55fff82b..7b91205f 100644
--- a/src/leap/bitmask/crypto/srpauth.py
+++ b/src/leap/bitmask/crypto/srpauth.py
@@ -193,6 +193,9 @@ class SRPAuth(QtCore.QObject):
:type password: str
"""
logger.debug("Authentication preprocessing...")
+
+ username = username.lower()
+
self._srp_user = self._srp.User(username,
password,
self._hashfun,
diff --git a/src/leap/bitmask/crypto/srpregister.py b/src/leap/bitmask/crypto/srpregister.py
index c69294d7..5c0a8efc 100644
--- a/src/leap/bitmask/crypto/srpregister.py
+++ b/src/leap/bitmask/crypto/srpregister.py
@@ -107,6 +107,9 @@ class SRPRegister(QtCore.QObject):
:rtype: tuple
:rparam: (ok, request)
"""
+
+ username = username.lower()
+
salt, verifier = self._srp.create_salted_verification_key(
username,
password,