rurza / NepTunes-Issues

This repository is only for issue tracking.
5 stars 0 forks source link

Last.fm: wrong username or/and password #11

Closed netopolit closed 8 years ago

netopolit commented 8 years ago

When I try to sign in to Last.fm I get this: It looks like you typed wrong username or/and password. 🤔 You can always change the password on the Last.fm website.

I'm sure username and password are correct (pasting the same to last.fm login page logs me in).

Any idea what may be causing this and how to fix it?

Thanks

rurza commented 8 years ago

Hi! You're not the first one, you can fix it by resetting password on Last.fm website. Not sure why, my hash function is pretty straighforward.

- (NSString *)md5sumFromString:(NSString *)string {
    unsigned char digest[CC_MD5_DIGEST_LENGTH], i;
    CC_MD5([string UTF8String], (CC_LONG)[string lengthOfBytesUsingEncoding:NSUTF8StringEncoding], digest);
    NSMutableString *ms = [NSMutableString string];
    for (i=0;i<CC_MD5_DIGEST_LENGTH;i++) {
        [ms appendFormat: @"%02x", (int)(digest[i])];
    }
    return [ms copy];
}
netopolit commented 8 years ago

Thanks. Resetting the password worked.