Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pgcommitfest/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ def auth_receive(request):
# Finally, check of we have a data package that tells us where to
# redirect the user.
if 'd' in data:
(nonces, datas, tags) = data['d'][0].split('$')
splitdata = data['d'][0].split('$')
if len(splitdata) != 3:
return HttpResponse("Invalid login pass-through data received, likely because of an old link. Please try again.")
(nonces, datas, tags) = splitdata
decryptor = AES.new(
SHA256.new(settings.SECRET_KEY.encode('ascii')).digest()[:32],
AES.MODE_SIV,
Expand Down
Loading