Verify that the remote user is who they say they

This commit is contained in:
Mouse Reeve
2020-05-18 18:26:00 -07:00
parent 1b48ca2f85
commit 373a378452
2 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,7 @@ def shared_inbox(request):
def get_public_key(key_actor):
''' try a stored key or load it from remote '''
try:
user = models.User.objects.get(remote_id=key_actor)
public_key = user.public_key