src/Security/Member.php
public static function member_from_tempid($tempid)
    {
        $members = static::get()
            ->filter('TempIDHash', $tempid);

        // Exclude expired
        if (static::config()->get('temp_id_lifetime')) {
            /** @var DataList|Member[] $members */
            $members = $members->filter('TempIDExpired:GreaterThan', DBDatetime::now()->getValue());
        }

        return $members->first();
    }
public static function member_from_tempid($tempid)
    {
        $members = static::get()
            ->filter('TempIDHash', $tempid);

        // Exclude expired
        if (static::config()->get('temp_id_lifetime')) {
            /** @var DataList|Member[] $members */
            $members = $members->filter('TempIDExpired:GreaterThan', DBDatetime::now()->getValue());
        }

        return $members->first();
    }
public static function member_from_tempid ( $ tempid ) { $ members = static :: get ( ) -> filter ( 'TempIDHash' , $ tempid ) ; // Exclude expired if ( static :: config ( ) -> get ( 'temp_id_lifetime' ) ) { /** @var DataList|Member[] $members */ $ members = $ members -> filter ( 'TempIDExpired:GreaterThan' , DBDatetime :: now ( ) -> getValue ( ) ) ; } return $ members -> first ( ) ; }
Find a member record with the given TempIDHash value

@param string $tempid
@return Member
Find a member record with the given TempIDHash value