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)
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try with OpenClinic 0.7 and tell me if error persists.
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)
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.
I'm sorry Jose Antonio, but I found the same problem and fixed it right in the 0.8 version!
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?
Google Chrome on Windows. Anyway, why don't you put the "repeat password" field?
Because the password is visible and, moreover, it's shown in the summary prior to installation.
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.
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)
Good idea, Alessandro!
Here is the patch for file js/wizard.js.
Patch is on 0.8 version of OpenClinic.