Make Firefox wise to remember Salesforce Credentials

Saturday, September 3, 2011 by Aslam - The Alexendra
Hi All,
I am back after a long break :). Today i want to share a good trick which help me to save my time in many ways. Thanks to my friend (Abdul Vahid) who given me hint for that.

Problem:
Most of you (developers) are aware that these days salesforce has disabled the remember password functionality. It does not save or prompt to save any password when you login to the org. It is very hectic to maintain some external doc or sheet for passowrd , for a developer who work and develop in many orgs. For example i work in 20 orgs (sandbox, production) some times. I maintain a separate doc to look and find password whenever i need to work in a org. That takes time and sometimes not easy.

Solution:
So here is the solution trick :)
  • Find out where you installed your firefox and go to Components folder. My location is like this "D:\Mozilla Firefox\components".
  • Find the "nsLoginManager.js" file and open this in any editor. Before doing this you need to close all instances of firefox.
  • Find out following line of code and comment it. I found it near line #805.

Before comment
_isAutocompleteDisabled : function (element) {
if (element && element.hasAttribute("autocomplete") &&
element.getAttribute(
"autocomplete").toLowerCase() == "off")
return true;

return false;
},




After comment
_isAutocompleteDisabled : function (element) {
//if (element && element.hasAttribute("autocomplete") &&
// element.getAttribute("autocomplete").toLowerCase() == "off")
//return true;

return false;
},



Save the file and start your firefox again.

(Note: The above steps given for Firefox 3.6 version. In other version it may differ)

Now see, whenever you try to login with username/pwd. Firefox will ask (prompt) you about "remember" password feature. Once you click on "Remember". It will save your username/password for your org. Next time when ever you try to login using your username, it will auto fill password like old days :)

Now, i do not need to maintain any external password doc. Isn't it cool :)


Thanks
Aslam Bari

9 comments:

Abdul Vahid said...

Like It... :)

Anonymous said...

Great Job

M. A. Sridhar said...

There is also another way that works with Google Chrome, too. For each of your orgs, create a bookmark of the following form:

https://www.salesforce.com/login.jsp?un=&pw=

where you replace with your user name, and with your password. Then, you can just click the bookmark, and it will log you in directly. I have created a folder named "sfdc logins" in my bookmarks toolbar, from which I can click on any of the orgs I work with.

Hope this helps.

M. A. Sridhar said...

Strange, your blog software ate up the less than and greater than symbols in my post. So here's my second attempt. Create a bookmark of this form:

https://www.salesforce.com/login.jsp?un=<userName>&pw=<password>

where you replace <userName> with your user name, and <password> with your password.

Sachin Agarwal said...

Hi Abdul Vahid! For chrome you can use the extension Https://chrome.google.com/webstore/detail/ldjbglicecgnpkpdhpbogkednmmbebec to remember the User Credentials.

Reena said...

Hey Aslam ....

This is really awesome .

Thanks it will help a lot.

Nik's said...

nice yaar

Anonymous said...

for later FF, you can always use the following add-on.

https://addons.mozilla.org/en-US/firefox/addon/remember-passwords/

works perfectly!

Anonymous said...

It is a security risk to use M A Sridars solution.

Creating a bookmark with the password embedded in it is unacceptable. Saleforce should not allow logins via get commands.

DC

Post a Comment