]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Owa.php
Changes:
[friendica.git] / src / Module / Owa.php
index a3ff8d98380e94c1ef04b71a26ed5c5584bdbb30..7b3af7b52fe93d0f7f1e1aba046aeaab39ee04ad 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -80,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.
@@ -101,6 +101,6 @@ class Owa extends BaseModule
                                }
                        }
                }
-               System::jsonExit($ret, 'application/x-zot+json');
+               $this->jsonExit($ret, 'application/x-zot+json');
        }
 }