Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Well, I FINALLY have been able to login to a website for school...

Well, I FINALLY have been able to login to a website for school...

Scheduled Pinned Locked Moved The Weird and The Wonderful
helpquestiondatabaseadoberegex
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brisingr Aerowing
    wrote on last edited by
    #1

    Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?

    What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

    T N N 3 Replies Last reply
    0
    • B Brisingr Aerowing

      Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?

      What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

      T Offline
      T Offline
      Tim Carmichael
      wrote on last edited by
      #2

      He refactored it... it didn't meet his design specifications.

      N 1 Reply Last reply
      0
      • B Brisingr Aerowing

        Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?

        What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

        N Offline
        N Offline
        Nelek
        wrote on last edited by
        #3

        Brisingr Aerowing wrote:

        that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs.

        mandatory xkcd[^]

        Brisingr Aerowing wrote:

        Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?

        Gimme codez plzzz, its urgntzzz On a crazy but serious note: Scenario one: the mouse can be a bitch and deselect part of the text you have to copy, then if you delete the message and you empty the trash-bin before you paste the copied code... you might end in a situation where you have to finish the code you were given, having no idea of how to do it. Scenario 2: You copy while you have a remote desktop open, and someone else have filled the clipboard with other kind of code. Then you paste the wrong content due to the remote desktop bug, you don't checked at all what you are pasting and you deploy something compilable that makes no fucking sense in that place. And no... it didn't happen to me (but a colleague in other land). I have only suffered the consequences of both scenarios and had to repair one of them :doh: :doh: :doh: :sigh: :sigh: :sigh:

        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

        1 Reply Last reply
        0
        • B Brisingr Aerowing

          Said website is for Psychology 120, as I need to participate in research studies for credits. I (along with numerous other students) couldn't log in, as we would get an invalid credentials error, no matter what (and yes they were valid). Yesterday I found out that the issue was a very messed up validation function that failed for seemingly random valid inputs and succeeded for seemingly random invalid inputs. The function was only supposed to be one line, sent to the person in an email (copy and paste), calling a REST service to match the user ID against the database. The person writing it somehow managed to mess that up and break the site. The function was apparently about 300 lines when the idjit was done. Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?

          What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

          N Offline
          N Offline
          Nathan Minier
          wrote on last edited by
          #4

          Brisingr Aerowing wrote:

          Messing something simple like that up requires a special kind of stupid. How do you mess up a F****** ONE LINE FUNCTION, WHEN THE ACTUAL CODE WAS GIVEN TO YOU?!?

          I think that the code which tested your login credentials against every bank site was a friendly security feature, not a bug. I'm not sure how else I would personally squeeze 300 lines of of a login check.

          "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

          1 Reply Last reply
          0
          • T Tim Carmichael

            He refactored it... it didn't meet his design specifications.

            N Offline
            N Offline
            nanik88
            wrote on last edited by
            #5

            yes yes yes thats good

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups