diff options
author | Thais Siqueira <thais.siqueira@gmail.com> | 2017-03-15 11:10:46 -0300 |
---|---|---|
committer | Thais Siqueira <thais.siqueira@gmail.com> | 2017-03-15 11:10:46 -0300 |
commit | f904bf312c08dfb0c81783e892560e49a5d87221 (patch) | |
tree | b8cb3b801bd017f2a11755fef09f530963f3e698 /service/pixelated | |
parent | fe9940276ce3d88c39471f23c298097480ad36b2 (diff) |
[#924] Fix typo on bonafide session variable name.
with @anikarni
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/authentication.py | 10 | ||||
-rw-r--r-- | service/pixelated/resources/backup_account_resource.py | 2 |
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) |