Permalink
Browse files

Add an extra per-site property for the form submission URL for adding…

… logins to the Login Manager, because LJ decided to route their logins through an https call and made things weird for finding logins entered through LJlogin when trying to log in through the website.
  • Loading branch information...
1 parent 54b3502 commit 36735f59904380ee526ef140fbe790fe6a844f9a @slaarti committed Mar 28, 2011
Showing with 8 additions and 1 deletion.
  1. +7 −0 content/LJcode-sites.js
  2. +1 −1 content/ljl-lib.js
@@ -3,6 +3,7 @@ var LJlogin_sites = {
name: 'LiveJournal',
domain: 'livejournal.com',
passmanurl: 'http://www.livejournal.com',
+ pmformurl: 'https://www.livejournal.com',
cookiere: 'livejournal\.com$',
cookiedom: '.livejournal.com',
cookieurl: 'http://www.livejournal.com/',
@@ -23,6 +24,7 @@ var LJlogin_sites = {
name: 'InsaneJournal',
domain: 'insanejournal.com',
passmanurl: 'http://www.insanejournal.com',
+ pmformurl: 'http://www.insanejournal.com',
cookiere: 'insanejournal\.com$',
cookiedom: '.insanejournal.com',
cookieurl: 'http://www.insanejournal.com/',
@@ -53,6 +55,7 @@ var LJlogin_sites = {
name: 'JournalFen',
domain: 'journalfen.net',
passmanurl: 'http://www.journalfen.net',
+ pmformurl: 'http://www.journalfen.net',
cookiere: 'journalfen\.net$',
cookiedom: '.journalfen.net',
cookieurl: 'http://www.journalfen.net/',
@@ -69,6 +72,7 @@ var LJlogin_sites = {
name: 'DeadJournal',
domain: 'deadjournal.com',
passmanurl: 'http://www.deadjournal.com',
+ pmformurl: 'http://www.deadjournal.com',
cookiere: 'deadjournal\.com$',
cookiedom: '.deadjournal.com',
cookieurl: 'http://www.deadjournal.com/',
@@ -86,6 +90,7 @@ var LJlogin_sites = {
name: 'Scribbld',
domain: 'scribbld.com',
passmanurl: 'http://www.scribbld.com',
+ pmformurl: 'http://www.scribbld.com',
cookiere: 'scribbld\.com$',
cookiedom: '.scribbld.com',
cookieurl: 'http://www.scribbld.com/',
@@ -102,6 +107,7 @@ var LJlogin_sites = {
name: 'Dreamwidth',
domain: 'dreamwidth.org',
passmanurl: 'http://www.dreamwidth.org',
+ pmformurl: 'http://www.dreamwidth.org',
cookiere: 'dreamwidth\.org$',
cookiedom: '.dreamwidth.org',
cookieurl: 'http://www.dreamwidth.org/',
@@ -118,6 +124,7 @@ var LJlogin_sites = {
name: 'Inksome',
domain: 'inksome.com',
passmanurl: 'http://www.inksome.com',
+ pmformurl: 'http://www.inksome.com',
cookiere: 'inksome\.com$',
cookiedom: '.inksome.com',
cookieurl: 'http://www.inksome.com/',
View
@@ -108,7 +108,7 @@ function LJlogin_savepassword(siteid, ljuser, ljpass) {
var linfo = Components.classes["@mozilla.org/login-manager/loginInfo;1"]
.createInstance(Components.interfaces.nsILoginInfo);
linfo.init(LJlogin_sites[siteid].passmanurl,
- LJlogin_sites[siteid].passmanurl, null,
+ LJlogin_sites[siteid].pmformurl, null,
ljuser, ljpass,
"user", "password");
logman.addLogin(linfo);

0 comments on commit 36735f5

Please sign in to comment.