mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Add a lot of log-points
This commit is contained in:
parent
464fdb955c
commit
e4a83eafb8
8 changed files with 189 additions and 65 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue