summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/authentication.py10
-rw-r--r--service/pixelated/resources/backup_account_resource.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/service/pixelated/authentication.py b/service/pixelated/authentication.py
index 27d6035a..b5edbec0 100644
--- a/service/pixelated/authentication.py
+++ b/service/pixelated/authentication.py
@@ -30,7 +30,7 @@ class Authenticator(object):
def __init__(self, leap_provider):
self._leap_provider = leap_provider
self.domain = leap_provider.server_name
- self.bonafide_sesssion = None
+ self.bonafide_session = None
@inlineCallbacks
def authenticate(self, username, password):
@@ -50,11 +50,11 @@ class Authenticator(object):
def _bonafide_auth(self, user, password):
srp_provider = Api(self._leap_provider.api_uri)
credentials = Credentials(user, password)
- self.bonafide_sesssion = Session(credentials, srp_provider, self._leap_provider.local_ca_crt)
- yield self.bonafide_sesssion.authenticate()
+ self.bonafide_session = Session(credentials, srp_provider, self._leap_provider.local_ca_crt)
+ yield self.bonafide_session.authenticate()
returnValue(Authentication(user,
- self.bonafide_sesssion.token,
- self.bonafide_sesssion.uuid,
+ self.bonafide_session.token,
+ self.bonafide_session.uuid,
'session_id',
{'is_admin': False}))
diff --git a/service/pixelated/resources/backup_account_resource.py b/service/pixelated/resources/backup_account_resource.py
index d7e081d6..3d95879c 100644
--- a/service/pixelated/resources/backup_account_resource.py
+++ b/service/pixelated/resources/backup_account_resource.py
@@ -49,7 +49,7 @@ class BackupAccountResource(BaseResource):
return renderElement(request, site)
def render_POST(self, request):
- account_recovery = AccountRecovery(self._authenticator.bonafide_sesssion)
+ account_recovery = AccountRecovery(self._authenticator.bonafide_session)
def update_response(response):
request.setResponseCode(NO_CONTENT)