Merge pull request #22584 from edx/feanil/fix_photo_id_key

Instantiate idv attempt with a string photo_id_key.
This commit is contained in:
Feanil Patel
2019-12-19 23:25:55 -05:00
committed by GitHub

View File

@@ -688,7 +688,7 @@ class SoftwareSecurePhotoVerification(PhotoVerification):
# Update our record fields
if six.PY3:
self.photo_id_key = codecs.encode(rsa_encrypted_aes_key, 'base64')
self.photo_id_key = codecs.encode(rsa_encrypted_aes_key, 'base64').decode('utf-8')
else:
self.photo_id_key = rsa_encrypted_aes_key.encode('base64')