public static function findByActivationToken($token)
    {
        if (!static::isActivationTokenValid($token)) {
            return null;
        }
        return static::find()->where(['activation_token' => $token, 'status' => self::STATUS_REGISTERED])->limit(1)->one();
    }
public static function findByActivationToken($token)
    {
        if (!static::isActivationTokenValid($token)) {
            return null;
        }
        return static::find()->where(['activation_token' => $token, 'status' => self::STATUS_REGISTERED])->limit(1)->one();
    }
public static function findByActivationToken ( $ token ) { if ( ! static :: isActivationTokenValid ( $ token ) ) { return null ; } return static :: find ( ) -> where ( [ 'activation_token' => $ token , 'status' => self :: STATUS_REGISTERED ] ) -> limit ( 1 ) -> one ( ) ; }
Finds registered user by activation token.
@param string $token activation token
@return static|null
Finds registered user by activation token .