Add a lot of log-points

This commit is contained in:
Philipp 2022-07-07 21:33:41 +02:00
parent 464fdb955c
commit e4a83eafb8
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
8 changed files with 189 additions and 65 deletions

View file

@ -27,6 +27,11 @@ use Friendica\Util\Strings;
class TrustedBrowser extends BaseFactory
{
/**
* Creates a new Trusted Browser based on the current user environment
*
* @throws \Exception In case something really unexpected happens
*/
public function createForUserWithUserAgent(int $uid, string $userAgent, bool $trusted): \Friendica\Security\TwoFactor\Model\TrustedBrowser
{
$trustedHash = Strings::getRandomHex();