db/models/user.js
// Don't send passwords anywhere ever.
Don't send passwords anywhere ever.
Don ' t send passwords anywhere ever .
toJSON() {
      const values = Object.assign({}, this.get());
      delete values.password_digest;
      return values;
    }
toJSON ( ) { const values = Object . assign ( { } , this . get ( ) ) ; delete values . password_digest ; return values ; }
Don't send passwords anywhere ever.
Don ' t send passwords anywhere ever .