Rename pubkey to loginPubkey because we'll soon have another pubkey.

This breaks sharing because we no longer have a normal pubkey.
This will be fixed in the next commit.
This commit is contained in:
Tom Hacohen
2020-05-26 13:23:45 +03:00
parent 2412c295de
commit 863c405802
4 changed files with 22 additions and 6 deletions

View File

@@ -603,7 +603,7 @@ class AuthenticationViewSet(viewsets.ViewSet):
content = {'code': 'wrong_host', 'detail': detail}
return Response(content, status=status.HTTP_400_BAD_REQUEST)
verify_key = nacl.signing.VerifyKey(user.userinfo.pubkey, encoder=nacl.encoding.RawEncoder)
verify_key = nacl.signing.VerifyKey(user.userinfo.loginPubkey, encoder=nacl.encoding.RawEncoder)
verify_key.verify(response_raw, signature)
data = self.login_response_data(user)