smugmug.login.withHash

huffmanhuffman Registered Users Posts: 19 Big grins
I've used the method "smugmug.login.withHash" for some time on API 1.2.2. It worked a week or two ago. Suddenly now it starts returning Code 1, "Invalid Login"

I can't find any changes which would cause that. Any help would be appreciated.

Thanks,
Bill

Comments

  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited September 15, 2012
    I'm running into the exact same issue. I've been running this code for years. Please advise.
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • huffmanhuffman Registered Users Posts: 19 Big grins
    edited September 16, 2012
    Problem Solved
    I solved this by doing a smugmug.login.withPassword again, and looking at the Password Hash that is returned. It's much different than it used to be. For starters it's 64 characters. I assume a new hash algorithm is now in use.

    My remaining question would be how I should have found out that my Password Hash had changed.

    Bill
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited September 17, 2012
    Thank you for figuring this out. I was wondering what the fix was.
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited September 19, 2012
    I want to thank you again for figuring this out. Once I re-learned how to use the API and got a new hash, my script is working fine again. thumb.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • huffmanhuffman Registered Users Posts: 19 Big grins
    edited September 22, 2012
    We must be the only two smugmuggers using only the passwordhash mechanism. That could mean we're one of relatively few writing scripts for our own use only. Without the desire to write a script only for myself, I don't think I'd have run into this problem.

    Interesting that no Heros have had a word yet.

    Bill
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited September 23, 2012
    I think we're the only two using the old API version. Maybe it was only changed on the 1.2 codebranch because that's where an issue was found. ne_nau.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • PharfignewtonPharfignewton Registered Users Posts: 9 Beginner grinner
    edited September 24, 2012
    OAuth in cmdline/scripting is fairly straight forward - I built a bulk coupon script using it.
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited September 24, 2012
    I found oauth to be too much for something as simple as what I was doing.
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
Sign In or Register to comment.