Commit 55208c86 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[sgpe] fix execute transfer

'context' request data is not needed anymore
parent a7c46919
......@@ -163,20 +163,12 @@ class TransferPage(LoggedPage, ErrorCheckedJsonPage):
class SignTransferPage(LoggedPage, LoginPage):
def get_token(self):
result_page = json.loads(self.content)
assert result_page['commun']['statut'] == 'ok', 'Something went wrong: %s' % result_page['commun']['raison']
return result_page['donnees']['jeton']
def get_confirm_transfer_data(self, password):
token = self.get_token()
authentication_data = self.get_authentication_data()
return {
'codsec': authentication_data['img'].get_codes(password[:6]),
'cryptocvcs': authentication_data['infos']['crypto'],
'vk_op': 'sign',
'context': token,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment