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 On” greasemonkey 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).
December 17th, 2008 at 6:14 pm
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
December 18th, 2008 at 10:43 am
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)
May 19th, 2010 at 9:45 am
THank you, you saved a lot of keystrokes everyday.
May 20th, 2010 at 12:53 pm
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();
}
June 11th, 2010 at 8:45 am
[...] | 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 [...]