diff --git a/server/authentication.py b/server/authentication.py index 7505ae2..a066f5c 100644 --- a/server/authentication.py +++ b/server/authentication.py @@ -123,7 +123,7 @@ class Authetication: dictionary = dict() for user in data['user']: - key = data['publicKey'] + key = user['publicKey'] key = bytes.fromhex(key) try: rsaKey = RSA.import_key(key)