Passwords - InfoPath Dev
in

InfoPath Dev

Passwords

Last post 05-04-2006 02:38 AM by Taffman. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 04-21-2006 11:11 AM

    • Jerry
    • Not Ranked
    • Joined on 04-17-2006
    • USA
    • Posts 14

    Passwords

    I developed a Bill of Materials/Purchase Acquisition form that I would like to find out if I can add 'password' controls to it. Once the user of the form fills it out, I would like to be able to have that person enter his name in a field + a password for that person.. then an e-mail to be sent to the next person who must review the form and if is OK with it, he enters his name in another field + his unique password... this process continues thru several layers of persons who receives an e-mail to review the form and enter their name and password to approve the form, until it reaches the last person in the approval process. Can this be done with passwords, or does it take 'digital signatures'? The form will reside in my Sharepoint site.
  • 04-21-2006 09:18 PM In reply to

    The problem is that in InfoPath anything typed in the field is just stored as plaintext in the XML document. So anyone could see the data. You could use digital signatures which would be the most secure and reliable method.
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 04-21-2006 10:44 PM In reply to

    Patrick Halstead
    Project Manager at Qdabra
  • 04-24-2006 12:54 PM In reply to

    • Jerry
    • Not Ranked
    • Joined on 04-17-2006
    • USA
    • Posts 14
    Hi Patrick.... thanks for the link. I was able to perform all the steps; however, in step 10, the instructions indicated by clicking on the submit button, the form shifts into second view, Main Form, but it doesn't appear to do that. Any ideas??
  • 04-26-2006 03:48 AM In reply to

    Hi Jerry

    XDocument.View.SwitchView in the code is what switches the view.
    The reason the view would not switch is if code failed and thefore control didn't reach that statement at all or if the View name is not Main Form

    Pleae check the View name correctly in the code to that of your second view

    Hope this helps you
    Kalyan G Reddy
    Infopath MVP 2007 and 2008
  • 04-27-2006 07:07 AM In reply to

    • Jerry
    • Not Ranked
    • Joined on 04-17-2006
    • USA
    • Posts 14
    OK thanks.... I figured out what I wanted to do by just using password fields.
  • 04-27-2006 10:28 AM In reply to

    quote:
    Originally posted by shirazcupala

    The problem is that in InfoPath anything typed in the field is just stored as plaintext in the XML document. So anyone could see the data. You could use digital signatures which would be the most secure and reliable method.



    In response to this, it is possible to implement a hashing algorithm so that you can store the password in the form as plaintext but still not be giving any information away. I've done this before with JScript and here's a quick overview of the process:

    1. Downlaod the JavaScript source code for the SHA-1 hasing alogrithm herehttp://pajhome.org.uk/crypt/md5/index.html.

    2. From that same website type the password and convert it to whatever algorithm you're using. (It will be a long alphanumeric string).

    3. Store this alphanumeric string as a default value for one of the nodes in your form, or preferably in a 2DS.

    4. Create a password field that whenever the 'Login' button is pressed it reads the typed password, runs it through the hashing alogorithm, and compares it to the value stored in the node in the 2DS. If they match, password is correct. Either way, erase the password from the input field so that plaintext is not stored with the form.

    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 05-04-2006 02:38 AM In reply to

    Hi, I've followed the steps in:

    http://www.infopathdev.com/howto/tutorials/default.aspx?i=e86c3d0c7300432ab02143bb776223b1

    All very straightforward, however being an InfoPath Newbie I think I've missed something.

    Where do I spceify what the username and password shouls be?
    I suspect that I need to set up an access database for this. I'm quite capable with MsAcces, just need to understand how this is done?
Page 1 of 1 (8 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.