summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/crypto/srpauth.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-22 15:15:39 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-22 15:15:39 -0300
commit47b7de00d45872f1656d4db2d5a8af3070478c6c (patch)
treed4f441e5b25b6d30e857dfa7d7d74d408d58b637 /src/leap/bitmask/crypto/srpauth.py
parent745d48a17703991854d6242cfdc2772e7a327569 (diff)
Make username lower case before using them
Diffstat (limited to 'src/leap/bitmask/crypto/srpauth.py')
-rw-r--r--src/leap/bitmask/crypto/srpauth.py3
1 files changed, 3 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,