1.2.0 smugmug.login.withHash doesn't return userID

rkallarkalla Registered Users Posts: 108 Major grins
This may be minor, but I noticed that withPassword returns a User struct with the user's ID in it, but withHash does not.

Should it? (I haven't gotten to the part of the API yet that makes use of the User's ID, so I don't know how valuable that value is for a logged in session... just thought the symmetry would be worth noting of the two methods)


Example return from withPassword (only diff withHash has, is no User struct):
{
    "stat":"ok",
    "method":"smugmug.login.withPassword",
    "Login":{
        "PasswordHash":"<PASSWORD HASH>",
        "AccountType":"<ACCOUNT TYPE>",
        "FileSizeLimit":<FILESIZE LIMIT, 12MB or 25MB in bytes>,
        "Session":{
            "id":"<SESSION ID>"
        },
        "User":{
            "id":<USER ID>
        }
    }
}

Comments

Sign In or Register to comment.