57

Boss: "Can you create a login page where every login fails?"

Me: "Sure thing!"
*Writes out php file that returns false and calls it via AJAX*

Comments
  • 8
    Why would someone need such a feature?
  • 4
    Pure evil
  • 16
    Talk about overengineering, you need neither a backend nor JavaScript for that!
  • 0
    Why the hell, though...?
  • 6
    Alternative:

    Boss: can you write a page where the login always fails?

    Me: Sure. *Writes it in PHP*
  • 1
    @deusprogrammer yeah you can just add a form like this:

    <form method="post" action="">
    Username: <input type="text">
    Passwd: <input type="password">
    <input type="submit" value="submit">
    </form>
    <?php
    if(isset($_POST['submit'])){
    echo "Login failed!";
    }

    Of course you can store what the user inputs using MySQL and whatnot, but why would anyone require this?
  • 1
    @RAZERZ bravo XD. Your deflection of my sarcasm with more sarcasm was legendary.
  • 0
    @deusprogrammer 🤣🤣
Add Comment