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 ,

2 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)

Leave a Comment




Your comment

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