mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 07:41:32 +00:00
Fix bug where sign_message wasn't idempotent
This commit is contained in:
parent
459ae684de
commit
2c0aba2ffe
@ -21,6 +21,7 @@ def message_checksum(message):
|
||||
|
||||
|
||||
def sign_message(key, message):
|
||||
message.pop('signature', None)
|
||||
signature = message_signature(key, message)
|
||||
message['signature'] = b64encode(signature).decode()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user