diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-10-26 15:31:23 +0200 |
---|---|---|
committer | Denis Costa <deniscostadsc@gmail.com> | 2016-10-26 14:34:31 -0200 |
commit | 3df56a4f3c411c3bde51c88e6e0bf34d5e582119 (patch) | |
tree | de4f9a2d1d78d8868d49998fc2a91ea1b5cc3d83 /service/pixelated | |
parent | e3006fff2f71787e9879e2f88e57dc9b935b7782 (diff) |
extracting username before doing bonafide auth #795
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/authentication.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/authentication.py b/service/pixelated/authentication.py index a8326fb9..02b43a1e 100644 --- a/service/pixelated/authentication.py +++ b/service/pixelated/authentication.py @@ -21,7 +21,8 @@ class Authenticator(object): @inlineCallbacks def _srp_auth(self, username, password): try: - auth = yield authenticate(self._leap_provider, username, password) + extracted_username = self.extract_username(username) + auth = yield authenticate(self._leap_provider, extracted_username, password) except SRPAuthError: raise UnauthorizedLogin() |