Create Login page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • webmaniac

    Create Login page

    Hi,

    Does anyone know, How to create a Login Page & read the username &
    password from xml file.
    Like my XML file is going to store the username & password. & when
    user is going to put the username & password in Login Page, It will
    check it on XML File. Grab the Username & print Hi Username.

    Thanks
  • Joost Diepenmaat

    #2
    Re: Create Login page

    webmaniac <sunnyluthra1@g mail.comwrites:
    Hi,
    >
    Does anyone know, How to create a Login Page & read the username &
    password from xml file.
    Like my XML file is going to store the username & password. & when
    user is going to put the username & password in Login Page, It will
    check it on XML File. Grab the Username & print Hi Username.
    You don't want to do this in client-side javascript. Is this homework?

    --
    Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/

    Comment

    • Evertjan.

      #3
      Re: Create Login page

      Joost Diepenmaat wrote on 18 nov 2008 in comp.lang.javas cript:
      webmaniac <sunnyluthra1@g mail.comwrites:
      >
      >Hi,
      >>
      >Does anyone know, How to create a Login Page & read the username &
      >password from xml file.
      >Like my XML file is going to store the username & password. & when
      >user is going to put the username & password in Login Page, It will
      >check it on XML File. Grab the Username & print Hi Username.
      >
      You don't want to do this in client-side javascript. Is this homework?
      A school assignment, methinks.


      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      • Bart Van der Donck

        #4
        Re: Create Login page

        Joost Diepenmaat wrote:
        webmaniac <sunnyluth...@g mail.comwrites:
        >Does anyone know, How to create a Login Page & read the username &
        >password from xml file.
        >Like my XML file is going to store the username & password. & when
        >user is going to put the username & password in Login Page, It will
        >check it on XML File. Grab the Username & print Hi Username.
        >
        You don't want to do this in client-side javascript.
        Probably not, but that doesn't mean that it can't be done in
        javascript:

        1. Fetch the XML-file with XmlHttpRequest and extract the stored
        password from it
        2. Encrypt the string that the user typed with a (visible) salt

        3. Compare results

        The problem is what should happen next; there are not many secure ways
        to proceed :-) The only way I can think of is to redirect to another
        page based on the unencrypted string that was typed by the user.

        --
        Bart

        Comment

        Working...