Skip to content

Commit

Permalink
Fix a bug that Tumblr Account Changer doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
syoichi committed Jul 14, 2013
1 parent 487e45c commit 605f3ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xpi/chrome/content/library/models.js
Expand Up @@ -347,20 +347,18 @@ var Tumblr = update({}, AbstractSessionService, {
},

getPasswords : function(){
return getPasswords('http://www.tumblr.com');
return getPasswords('https://www.tumblr.com');
},

login : function(user, password){
var LOGIN_FORM_URL = 'https://www.tumblr.com/login';
var LOGIN_EXEC_URL = 'https://www.tumblr.com/svc/account/register';
var self = this;
return Tumblr.logout().addCallback(function(){
return request(LOGIN_FORM_URL).addCallback(function(res){
var doc = convertToHTMLDocument(res.responseText);
var form = doc.getElementById('signup_form');
return request(LOGIN_EXEC_URL, {
return request(LOGIN_FORM_URL, {
sendContent : update(formContents(form), {
'action' : 'signup_login',
'user[email]' : user,
'user[password]' : password
})
Expand Down

0 comments on commit 605f3ea

Please sign in to comment.