Commit 347c43df authored by Moul's avatar Moul Committed by Mael

[mod] #170: cert: move license display after auth and checks

parent 583c3d48
......@@ -37,11 +37,6 @@ async def send_certification(id_to_certify):
id_to_certify = await get_informations_for_identity(id_to_certify)
main_id_to_certify = id_to_certify["uids"][0]
# Display license and ask for confirmation
head = await HeadBlock().head_block
currency = head["currency"]
license_approval(currency)
# Authentication
key = auth_method()
......@@ -72,6 +67,11 @@ async def send_certification(id_to_certify):
if pending_cert["from"] == issuer_pubkey:
message_exit("Certification is currently been processed")
# Display license and ask for confirmation
head = await HeadBlock().head_block
currency = head["currency"]
license_approval(currency)
# Certification confirmation
await certification_confirmation(
issuer_id, issuer_pubkey, id_to_certify, main_id_to_certify
......
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