Menu

#2 Password Problems on Chrome

v0.8
closed
None
5
2015-11-28
2004-06-29
Anonymous
No

I can not change a password or create any new users
and assign a password to them. I keep getting the error
message

"Password must be at least 4 characters" no matter the
length of the password?

Outlaw

Discussion

  • Jose Antonio Chavarria

    Try with OpenClinic 0.7 and tell me if error persists.

     
  • Alessandro Domanico

    The problem is due to the js/wizard.js script that looks for an not existing passwd[1] field, probably a "repeat password" field never implemented or not shown, so the password lenght check fails.

    I attached a patched js that work for me (to overwrite the original)

     
    • Jose Antonio Chavarria

      Thank you, Alessandro, for your comment.

      But for version 0.8, wizard.js code is correct and relates to the field "passwd" right (the one shown on the form and not the serving hidden copy). You do not need any modification.

       
  • Alessandro Domanico

    I'm sorry Jose Antonio, but I found the same problem and fixed it right in the 0.8 version!

     
    • Jose Antonio Chavarria

      I am shocked. I tried with Firefox 5.0 and Internet Explorer 8 on Windows, and Firefox 23.0 on Linux and I have not encountered any problems.

      What is your web browser?

       
  • Alessandro Domanico

    Google Chrome on Windows. Anyway, why don't you put the "repeat password" field?

     
    • Jose Antonio Chavarria

      Because the password is visible and, moreover, it's shown in the summary prior to installation.

       
  • Jose Antonio Chavarria

    The problem occurs only in Chrome. In Opera, Firefox and Internet Explorer, the operation is correct.

    In Chrome, it works not only validate the password, but it does not work any other field validation during the wizard. I have noticed that has to do with the order ascribed to the form fields. While other browsers who order as they appear on the page, Chrome reversed that order.

     
  • Alessandro Domanico

    I see, in Chrome the two forms are loaded reversed, so all validations are performed on the hidden one. The problems is that is not granted that fields will be loaded by the browser in the same way they are written in the html file, in other words the assertion that field on top is read first is not always true. If you want to be sure to identify that fields why don't you use the id in place of the name?

    i.e. row 63: if (f.getElementById("passwd").value.replace(/\s+/, "").length < 4)

     
    • Jose Antonio Chavarria

      Good idea, Alessandro!

      Here is the patch for file js/wizard.js.

       
  • Jose Antonio Chavarria

    • summary: Password Problems --> Password Problems on Chrome
    • status: open --> accepted
    • Group: --> v0.8
     
  • Jose Antonio Chavarria

    • status: accepted --> closed
     
  • Jose Antonio Chavarria

    Patch is on 0.8 version of OpenClinic.

     

Log in to post a comment.