mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 22:01:55 +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