src/Security/Member.php
public static function member_from_autologinhash($hash, $login = false)
    {
        /** @var Member $member */
        $member = static::get()->filter([
            'AutoLoginHash' => $hash,
            'AutoLoginExpired:GreaterThan' => DBDatetime::now()->getValue(),
        ])->first();

        if ($login && $member) {
            Injector::inst()->get(IdentityStore::class)->logIn($member);
        }

        return $member;
    }
public static function member_from_autologinhash($hash, $login = false)
    {
        /** @var Member $member */
        $member = static::get()->filter([
            'AutoLoginHash' => $hash,
            'AutoLoginExpired:GreaterThan' => DBDatetime::now()->getValue(),
        ])->first();

        if ($login && $member) {
            Injector::inst()->get(IdentityStore::class)->logIn($member);
        }

        return $member;
    }
public static function member_from_autologinhash ( $ hash , $ login = false ) { /** @var Member $member */ $ member = static :: get ( ) -> filter ( [ 'AutoLoginHash' => $ hash , 'AutoLoginExpired:GreaterThan' => DBDatetime :: now ( ) -> getValue ( ) , ] ) -> first ( ) ; if ( $ login && $ member ) { Injector :: inst ( ) -> get ( IdentityStore :: class ) -> logIn ( $ member ) ; } return $ member ; }
Return the member for the auto login hash

@param string $hash The hash key
@param bool $login Should the member be logged in?

@return Member the matching member, if valid
@return Member
Return the member for the auto login hash