summaryrefslogtreecommitdiff
path: root/src/leap/crypto/srpauth.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-04-08 23:44:22 +0900
committerkali <kali@leap.se>2013-04-08 23:44:22 +0900
commit42593d4c6bda51a544a72abc0f935633939dad49 (patch)
tree54e592870377d6a69929c2b7b6c7ac51fca3f7e0 /src/leap/crypto/srpauth.py
parent05fe7f44a899288a8a69b9a46793513b87f8d228 (diff)
Several fixes as per review
Diffstat (limited to 'src/leap/crypto/srpauth.py')
-rw-r--r--src/leap/crypto/srpauth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py
index 027ee0d7..8028a6dc 100644
--- a/src/leap/crypto/srpauth.py
+++ b/src/leap/crypto/srpauth.py
@@ -50,6 +50,7 @@ class SRPAuth(QtCore.QObject):
LOGIN_KEY = "login"
A_KEY = "A"
CLIENT_AUTH_KEY = "client_auth"
+ SESSION_ID_KEY = "_session_id"
def __init__(self, provider_config):
"""
@@ -272,8 +273,7 @@ class SRPAuth(QtCore.QObject):
"failed"))
logger.debug("Session verified.")
- SESSION_ID_KEY = "_session_id"
- session_id = self._session.cookies.get(SESSION_ID_KEY, None)
+ session_id = self._session.cookies.get(self.SESSION_ID_KEY, None)
if not session_id:
logger.error("Bad cookie from server (missing _session_id)")
raise SRPAuthenticationError(self.tr("Session cookie "