X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FVerifyPerson.py;fp=PLC%2FMethods%2FVerifyPerson.py;h=6dc448410e0f52b09bb46c4d6108fdc7d0c7d588;hb=bf1ee443b4322709f445a6f94c53c4c1a6cafa90;hp=10ad1c227c623af4f1039e370e929a339989979b;hpb=8201983e9b1ba59dc22649e8cdf91bab6008fd4d;p=plcapi.git diff --git a/PLC/Methods/VerifyPerson.py b/PLC/Methods/VerifyPerson.py index 10ad1c2..6dc4484 100644 --- a/PLC/Methods/VerifyPerson.py +++ b/PLC/Methods/VerifyPerson.py @@ -65,7 +65,7 @@ class VerifyPerson(Method): # Generate 32 random bytes int8s = random.sample(range(0, 256), 32) # Base64 encode their string representation - random_key = base64.b64encode(bytes(int8s)) + random_key = base64.b64encode(bytes(int8s)).decode() if verification_key is None or \ (verification_key is not None and person['verification_expires'] and \