X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FOwa.php;h=7b3af7b52fe93d0f7f1e1aba046aeaab39ee04ad;hb=3bca4fe2a64671d09e08346456cdfa6c12f996e9;hp=322cafa0971d0fb46dfdaae458fb9391ccac07cd;hpb=390f6be42ea9f71be3e1abd7eeb4b32b0c674c37;p=friendica.git diff --git a/src/Module/Owa.php b/src/Module/Owa.php index 322cafa097..7b3af7b52f 100644 --- a/src/Module/Owa.php +++ b/src/Module/Owa.php @@ -1,6 +1,6 @@ false ]; foreach (['REDIRECT_REMOTE_USER', 'HTTP_AUTHORIZATION'] as $head) { @@ -81,12 +80,12 @@ class Owa extends BaseModule $ret['success'] = true; $token = Strings::getRandomHex(32); - // Store the generated token in the databe. + // Store the generated token in the database. OpenWebAuthToken::create('owt', 0, $token, $contact['addr']); $result = ''; - // Encrypt the token with the public contacts publik key. + // Encrypt the token with the public contacts public key. // Only the specific public contact will be able to encrypt it. // At a later time, we will compare weather the token we're getting // is really the same token we have stored in the database. @@ -102,6 +101,6 @@ class Owa extends BaseModule } } } - System::jsonExit($ret, 'application/x-zot+json'); + $this->jsonExit($ret, 'application/x-zot+json'); } }