steemit / steem-js

Steem.js the official JavaScript library for Steem blockchain
https://www.npmjs.com/package/steem
MIT License
472 stars 225 forks source link

Login returns true #9

Closed wmbutler closed 8 years ago

wmbutler commented 8 years ago

Hey, looks like I guessed @ned's password :)

steem.login('ned', '****************', function(err, result) {
    console.log(err, result);
});

Returns true! Woohoo!

bonustrack commented 8 years ago

Fuck! I forgot to hide it on the commit. Please dont power down 100K$.

bonustrack commented 8 years ago

The real answer is that the blockchain actually return true even if the password or username is wrong. If you need to verify a password you can use my other package steemconnect here: https://github.com/adcpm/steemconnect/blob/master/lib/auth.js#L10

wmbutler commented 8 years ago

Cool, thx.