Avatar

preview.png has disappered, updated and figured out (General)

by Milo ⌂, Wednesday, July 04, 2018, 17:36 (80 days ago) @ Auge

Hi,

1. hidden "mode"
2. hidden "csrf_token"
3. text "new_user_name"
4. password "reg_pw"
5. password "reg_pw_conf"
6. text "phone"
7. text "new_user_email"
8. text "repeat_email"

@Milo: Do you see any problems with leaving it in this order?

I take a look to the FF function. The relevant code should be:

        // Locate the username field in the form by searching backwards
        // from the first passwordfield, assume the first text field is the
        // username. We might not find a username field if the user is
        // already logged in to the site.
        for (var i = pwFields[0].index - 1; i >= 0; i--) {
            var element = form.elements[i];
            var fieldType = (element.hasAttribute("type") ?
                             element.getAttribute("type").toLowerCase() :
                             element.type);
            if (fieldType == "text"  ||
                fieldType == "email" ||
                fieldType == "url"   ||
                fieldType == "tel"   ||
                fieldType == "number") {
                usernameField = element;
                break;
            }
        }

FF is searching backwards, thus, your suggestion should work fine.

/Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


Complete thread:

 RSS Feed of thread

powered by my little forum