I'm going to rip out this functionality. It was just there to get passport
set up locally without oauth stuff, but since everything we're doing is
oauth anyway, this is just dead weight confusing the fuck out of people.
Death to it.


On Sun, May 18, 2014 at 7:42 PM, Yonatan Kogan <notifications@github.com>wrote:

> In models/user.js:
>
> > @@ -17,22 +17,27 @@ module.exports = function(sequelize, DataTypes) {
> >    }, {
> >      instanceMethods: {
> >        setPassword: function(password, done) {
> > -        return bcrypt.genSalt(10, function(err, salt) {
> > -          return bcrypt.hash(password, salt, function(error, encrypted) {
> > +        var salt = bcrypt.genSalt(10, function(err, salt) {
>
> Also very confused here. How can this function return multiple things?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/thelac/boxplot/pull/5/files#r12776969>
> .
>