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. Client sided login

Client sided login

Scheduled Pinned Locked Moved The Weird and The Wonderful
questionjavascriptcomadobearchitecture
16 Posts 10 Posters 23 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 Brisingr Aerowing

    This JavaScript code powers a 1,500 user intranet application : programminghorror[^] So many things wrong with that...

    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???

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #4

    I have a hard time believe that it is real...

    "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    1 Reply Last reply
    0
    • B Brisingr Aerowing

      This JavaScript code powers a 1,500 user intranet application : programminghorror[^] So many things wrong with that...

      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???

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #5

      I don't see the problem :confused: Just disable the dev tools on the login page so no-one can see the api call.

      1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        I want to believe this is a joke too and that an entire team cannot be that stupid... But I'm not so sure :sigh: I once worked for a company who had their own "security framework". The idea was that you entered a username and password, the application would use those to login to SQL Server and if that succeeded you were logged in. So a user in SQL Server was a user in the system and a user in the system couldn't exist without a user in SQL Server. It supported Windows authentication too. The application had a form to enter new users and those users would be added in SQL Server too. It was a WinForms application on intranet so I guess it wasn't much of an issue, but it's really not how to do authentication :wtf: I think we ran into some issues at one point though. They built it when I was already an employee and I advised against it and advised a more "traditional" approach, but I was just a junior back then and according to the technical director this really was the best method. Cost him months to build too :laugh: I just remembered the issue we ran into! After a backup or some such, all users ended up being "orphaned" and everybody lost access to the database and the application. Happened more than once too. A 200+ employee company :laugh:

        Best, Sander sanderrossel.com Migrating Applications to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #6

        Only thing then left was to hand over keys to data center to users.

        "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

        Sander RosselS 1 Reply Last reply
        0
        • D dan sh

          Only thing then left was to hand over keys to data center to users.

          "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

          Sander RosselS Offline
          Sander RosselS Offline
          Sander Rossel
          wrote on last edited by
          #7

          We were lucky our users were enormous digital illiterates :laugh:

          Best, Sander sanderrossel.com Migrating Applications to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

          1 Reply Last reply
          0
          • D dan sh

            That can't be real. Come on. How stupid an entire team has to be to let this run in production. Has to be a joke. And if this is intranet, why are you bothered with form based authentication? Just do AD look up or something.

            "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

            D Offline
            D Offline
            DerekT P
            wrote on last edited by
            #8

            lw@zi wrote:

            How stupid an entire team has to be

            Just because it's a mid-sized organisation doesn't mean there's an "entire team". All too often the "IT Department" is one person (as a freelancer, I've been the "IT Department" to quite a few companies of that size and above). It may not even be an IT professional - this may be a tool knocked up for personal use, spotted by a manager, who said "roll that out to everyone and stick a username/password check on the front". If it's someone who spent 5 hours learning basic Javascript but no other IT background, it's no surprise stuff like this goes live. And it works so the manager would probably be delighted. What I wonder more about is

            if ("true" === "true") {
            return false;
            }

            Why???

            D 1 Reply Last reply
            0
            • B Brisingr Aerowing

              This JavaScript code powers a 1,500 user intranet application : programminghorror[^] So many things wrong with that...

              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???

              P Offline
              P Offline
              phil o
              wrote on last edited by
              #9

              I especially liked the

              <!-- todo: put this in a diferent file -->

              Yeah buddy, that's the biggest issue here...

              "Five fruits and vegetables a day? What a joke! Personally, after the third watermelon, I'm full."

              D 1 Reply Last reply
              0
              • B Brisingr Aerowing

                This JavaScript code powers a 1,500 user intranet application : programminghorror[^] So many things wrong with that...

                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???

                K Offline
                K Offline
                kmoorevs
                wrote on last edited by
                #10

                This reminds me of iSpy! :laugh: ...or it reminds me of an instructor who's trademark was every test had a 'find 10 things wrong with this code block' question. :laugh:

                "Go forth into the source" - Neal Morse

                1 Reply Last reply
                0
                • D DerekT P

                  lw@zi wrote:

                  How stupid an entire team has to be

                  Just because it's a mid-sized organisation doesn't mean there's an "entire team". All too often the "IT Department" is one person (as a freelancer, I've been the "IT Department" to quite a few companies of that size and above). It may not even be an IT professional - this may be a tool knocked up for personal use, spotted by a manager, who said "roll that out to everyone and stick a username/password check on the front". If it's someone who spent 5 hours learning basic Javascript but no other IT background, it's no surprise stuff like this goes live. And it works so the manager would probably be delighted. What I wonder more about is

                  if ("true" === "true") {
                  return false;
                  }

                  Why???

                  D Offline
                  D Offline
                  dan sh
                  wrote on last edited by
                  #11

                  The method is DoesUserWantToLogin, question is "Do you not want to login", response was true so return value was false. It is so straightforward. What is confusing you? ;)

                  "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                  D 1 Reply Last reply
                  0
                  • D dan sh

                    The method is DoesUserWantToLogin, question is "Do you not want to login", response was true so return value was false. It is so straightforward. What is confusing you? ;)

                    "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                    D Offline
                    D Offline
                    DerekT P
                    wrote on last edited by
                    #12

                    :laugh: :laugh: Not confused... just in wonderment!

                    1 Reply Last reply
                    0
                    • P phil o

                      I especially liked the

                      <!-- todo: put this in a diferent file -->

                      Yeah buddy, that's the biggest issue here...

                      "Five fruits and vegetables a day? What a joke! Personally, after the third watermelon, I'm full."

                      D Offline
                      D Offline
                      dan sh
                      wrote on last edited by
                      #13

                      That was a comment from QA. Too much code in one file.

                      "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                      1 Reply Last reply
                      0
                      • B Brisingr Aerowing

                        This JavaScript code powers a 1,500 user intranet application : programminghorror[^] So many things wrong with that...

                        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???

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #14

                        Open Data is the logical extension of Open Source :-D

                        It does not solve my Problem, but it answers my question

                        1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          I want to believe this is a joke too and that an entire team cannot be that stupid... But I'm not so sure :sigh: I once worked for a company who had their own "security framework". The idea was that you entered a username and password, the application would use those to login to SQL Server and if that succeeded you were logged in. So a user in SQL Server was a user in the system and a user in the system couldn't exist without a user in SQL Server. It supported Windows authentication too. The application had a form to enter new users and those users would be added in SQL Server too. It was a WinForms application on intranet so I guess it wasn't much of an issue, but it's really not how to do authentication :wtf: I think we ran into some issues at one point though. They built it when I was already an employee and I advised against it and advised a more "traditional" approach, but I was just a junior back then and according to the technical director this really was the best method. Cost him months to build too :laugh: I just remembered the issue we ran into! After a backup or some such, all users ended up being "orphaned" and everybody lost access to the database and the application. Happened more than once too. A 200+ employee company :laugh:

                          Best, Sander sanderrossel.com Migrating Applications to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                          A Offline
                          A Offline
                          Andreas Mertens
                          wrote on last edited by
                          #15

                          I had a client that was doing the same thing - fortunately they were updating their web app so I was able to rip all that out. However they also had code that would record every login event to a log file, recording the username and password in a publically accessible plain text file (within their LAN).

                          1 Reply Last reply
                          0
                          • B Brisingr Aerowing

                            This JavaScript code powers a 1,500 user intranet application : programminghorror[^] So many things wrong with that...

                            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???

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #16

                            Someone went to a coding-bootcamp, and was so great at his work his code needn't be reviewed :laugh:

                            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

                            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