]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Owa.php
Merge pull request #5329 from tobiasd/20180707-cs
[friendica.git] / src / Module / Owa.php
index 13594a3ea02b62baa52ec2ec5ffedfd9294afb36..306c525c062698bcdf88516d6f1b666b6700f356 100644 (file)
@@ -8,7 +8,7 @@ use Friendica\BaseModule;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Model\Contact;
-use Friendica\Model\Verify;
+use Friendica\Model\OpenWebAuthToken;
 use Friendica\Util\HTTPSignature;
 
 use dba;
@@ -56,7 +56,7 @@ class Owa extends BaseModule
                                                if (DBM::is_result($contact)) {
                                                        // Try to verify the signed header with the public key of the contact record
                                                        // we have found.
-                                                       $verified = HTTPSig::verify('', $contact['pubkey']);
+                                                       $verified = HTTPSignature::verify('', $contact['pubkey']);
 
                                                        if ($verified && $verified['header_signed'] && $verified['header_valid']) {
                                                                logger('OWA header: ' . print_r($verified, true), LOGGER_DATA);
@@ -66,7 +66,7 @@ class Owa extends BaseModule
                                                                $token = random_string(32);
 
                                                                // Store the generated token in the databe.
-                                                               Verify::create('owt', 0, $token, $contact['addr']);
+                                                               OpenWebAuthToken::create('owt', 0, $token, $contact['addr']);
 
                                                                $result = '';