]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/lib/salmonaction.php
Move around some code related to Magic_envelope and signing
[quix0rs-gnu-social.git] / plugins / OStatus / lib / salmonaction.php
index 320ea6cdfa6f980b9d51ad7e7301d4953bfd5e30..3cb76ca336b5bb11ad65ac4ecd9c8aa33c2fe116 100644 (file)
@@ -79,12 +79,8 @@ class SalmonAction extends Action
             $this->clientError($e->getMessage());
         }
 
-        // Cryptographic verification test
-        if (!$magic_env->verify($this->actor)) {
-            common_log(LOG_DEBUG, "Salmon signature verification failed.");
-            // TRANS: Client error.
-            $this->clientError(_m('Salmon signature verification failed.'));
-        }
+        // Cryptographic verification test, throws exception on failure
+        $magic_env->verify($this->actor);
 
         return true;
     }