mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Replace Logger with $this->logger in Module classes
This commit is contained in:
parent
105c737609
commit
8643231019
5 changed files with 19 additions and 24 deletions
|
@ -8,7 +8,6 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\OpenWebAuthToken;
|
||||
|
@ -60,7 +59,7 @@ class Owa extends BaseModule
|
|||
$verified = HTTPSignature::verifyMagic($contact['pubkey']);
|
||||
|
||||
if ($verified && $verified['header_signed'] && $verified['header_valid']) {
|
||||
Logger::debug('OWA header', ['addr' => $contact['addr'], 'data' => $verified]);
|
||||
$this->logger->debug('OWA header', ['addr' => $contact['addr'], 'data' => $verified]);
|
||||
|
||||
$ret['success'] = true;
|
||||
$token = Strings::getRandomHex(32);
|
||||
|
@ -77,10 +76,10 @@ class Owa extends BaseModule
|
|||
openssl_public_encrypt($token, $result, $contact['pubkey']);
|
||||
$ret['encrypted_token'] = Strings::base64UrlEncode($result);
|
||||
} else {
|
||||
Logger::info('OWA fail', ['id' => $contact['id'], 'addr' => $contact['addr'], 'url' => $contact['url']]);
|
||||
$this->logger->info('OWA fail', ['id' => $contact['id'], 'addr' => $contact['addr'], 'url' => $contact['url']]);
|
||||
}
|
||||
} else {
|
||||
Logger::info('Contact not found', ['handle' => $handle]);
|
||||
$this->logger->info('Contact not found', ['handle' => $handle]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue