Commits

William Pitcock committed 92eea9a

message: handle allow_untrusted properly

  • Participants
  • Parent commits 465b501

Comments (0)

Files changed (1)

File ediarpc/message.py

         raise InvalidSignatureException()
 
     message = Message(envelope, secret, signature)
-    if message.validate() is not True:
+    if message.validate() is not True and allow_unsigned is not True:
         raise InvalidSignatureException()
 
     return message.payload()