Fix checkAuthenticationEmailCode in Python example.
This commit is contained in:
parent
b07f99117d
commit
7f8c3e8402
@ -119,7 +119,7 @@ while True:
|
|||||||
if auth_state['@type'] == 'authorizationStateWaitEmailCode':
|
if auth_state['@type'] == 'authorizationStateWaitEmailCode':
|
||||||
code = input('Please enter the email authentication code you received: ')
|
code = input('Please enter the email authentication code you received: ')
|
||||||
td_send({'@type': 'checkAuthenticationEmailCode',
|
td_send({'@type': 'checkAuthenticationEmailCode',
|
||||||
'code': {'@type': 'emailAddressAuthenticationCode', 'code' : 'code'}})
|
'code': {'@type': 'emailAddressAuthenticationCode', 'code' : code}})
|
||||||
|
|
||||||
# wait for authorization code
|
# wait for authorization code
|
||||||
if auth_state['@type'] == 'authorizationStateWaitCode':
|
if auth_state['@type'] == 'authorizationStateWaitCode':
|
||||||
|
Loading…
Reference in New Issue
Block a user