diff --git a/onionr/api.py b/onionr/api.py index 69f775c7..54adbc47 100755 --- a/onionr/api.py +++ b/onionr/api.py @@ -498,6 +498,12 @@ class API: except AttributeError: pass else: + validSig = False + signer = self._core._utils.bytesToStr(bl.signer) + print(signer, bl.isSigned(), self._core._utils.validatePubKey(signer), bl.isSigner(signer)) + if bl.isSigned() and self._core._utils.validatePubKey(signer) and bl.isSigner(signer): + validSig = True + bl.bheader['validSig'] = validSig bl.bheader['meta'] = '' retData = {'meta': bl.bheader, 'metadata': bl.bmetadata} return json.dumps(retData) diff --git a/onionr/static-data/www/mail/index.html b/onionr/static-data/www/mail/index.html index dd48b4f3..18b2ddfc 100755 --- a/onionr/static-data/www/mail/index.html +++ b/onionr/static-data/www/mail/index.html @@ -27,8 +27,10 @@