File tree Expand file tree Collapse file tree 2 files changed +382
-105
lines changed
examples/yoti_example_flask Expand file tree Collapse file tree 2 files changed +382
-105
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ def index():
35
35
def auth ():
36
36
client = Client (YOTI_CLIENT_SDK_ID , YOTI_KEY_FILE_PATH )
37
37
activity_details = client .get_activity_details (request .args ['token' ])
38
- user_profile = activity_details .user_profile
39
- user_profile ['base64_selfie_uri' ] = getattr (activity_details , 'base64_selfie_uri' )
38
+ profile = activity_details .profile
39
+ profile ['base64_selfie_uri' ] = getattr (activity_details , 'base64_selfie_uri' )
40
40
41
- selfie = user_profile .get ('selfie' )
41
+ selfie = profile .get ('selfie' )
42
42
if selfie is not None :
43
- save_image (selfie )
43
+ save_image (selfie . value )
44
44
return render_template ('profile.html' ,
45
- ** user_profile )
45
+ ** profile )
46
46
47
47
48
48
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments