1 Replies - 2858 Views - Last Post: 08 October 2015 - 07:59 AM Rate Topic: -----

#1 TheHamburgler  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-September 15

Coming back from vacation I find this

Posted 21 September 2015 - 08:57 AM

So I came back from vacation to find this jewel.

// @TODO Temporarily because we love <Name of Coworker> we will block anyone named this
        // name from checking out because he keeps harassing us.  I told her
        // that this is not the way to do this, but the backend guys are swamped
        // and we don't have enough employees to do this right.  Thus this hack
        
        if ("<Name of Person>".equalsIgnoreCase(p.getFirstAndLastName()))
        {
            log.error("Someone named <Name of Person> was blocked from checkout per a hack for credit.");
            // lie so he doesn't catch on
            throw new PaymentException(
                "Failed to capture funds from credit card");
        }


Is This A Good Question/Topic? 0
  • +

Replies To: Coming back from vacation I find this

#2 depricated  Icon User is offline

  • Nero


Reputation: 2306
  • View blog
  • Posts: 5,968
  • Joined: 13-September 08

Re: Coming back from vacation I find this

Posted 08 October 2015 - 07:59 AM

so you had someone scamming and harassing you so hard your team blocked them from checkout?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1