dev@locazia: fix misprint

This commit is contained in:
user 2024-03-06 12:49:01 +03:00
parent e0d91c76cc
commit bd7cb2497d
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ async def s_api_system_send_status(request):
if not message or not signature: if not message or not signature:
return response.json({'error': 'No message or signature'}, status=400) return response.json({'error': 'No message or signature'}, status=400)
message = b58decode(message)
signer = Signer(hot_seed) signer = Signer(hot_seed)
if not signer.verify(message, signature): if not signer.verify(message, signature):
return response.json({'error': 'Invalid signature'}, status=400) return response.json({'error': 'Invalid signature'}, status=400)