For security reasons, the latest OpenMRS now has the autocomplete=”off” html attribute on its login page.  This will prevent the users from seeing a dropdown of previously logged in users.

Unfortunately, this will cost developers precious seconds when writing and testing code.

I found this “Autocomplete Ongreasemonkey script to re-enable autocomplete on all forms.  However, I want Firefox to fill in the admin/test username and password on the form for me, and even with this script it wasn’t doing that.

Luckily I was able to easily craft a new greasemonkey script based on that example. This script inserts “admin” and “test” into all login pages on any OpenMRS site.  Click here to download and install my script: openmrs-login.js (after installing the greasemonkey plugin).

This is in the openmrs category tagged as ,

5 comments »

5 Responses

  1. Jeroldine Linhart Says:

    auto fill will not work. I have tried all your suggestions and it still does not work. I have an autofill button on the tool bar if I right click it it brings up google, yahoo etc but left clicking it brings up nothing

  2. Ben Says:

    I’m not sure what autofill button you’re referring to. Are there any options for that button/plugin in tools–>addons, tools–>options, or greasemonkey?

    After installing this script you will need to log into the site again, then tell Firefox to remember your password. The next time you visit, you should be able to

    (Note that you will need to change the script so that it works for any site, not just */openmrs ones)

  3. Jaime Hablutzel Says:

    THank you, you saved a lot of keystrokes everyday.

  4. Jaime Hablutzel Says:

    Hi Ben, I been using this script since yesterday and it proves really useful, furthermore I have modified the code to autosubmit the login form after filling the fields.

    var passwordBox = document.getElementById(“password”);
    if (passwordBox) {
    passwordBox.value = password;
    }

    document.body.getElementsByTagName(“form”)[0].submit();

    }

  5. Inicio de sesión automático con GreaseMonkey para Joomla y otros « El espacio de Jaime… Says:

    […] | Escrito en Informatica, Joomla | Dejar un comentario Etiquetas: greasemonkey, joomla En este post http://blog.eflow.org/archives/81, Ben Wolfe sugiere un método para iniciar sesión automáticamente en las páginas que lo […]

Leave a Comment




Your comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.