function hashPassword(seq, password) {
  return new seq.Promise((resolve, reject) => {
    bcrypt.genSalt(conf.db.passwordHashSaltNumRounds, (err, salt) => {
      if (err) {
        reject(err);
      }

      bcrypt.hash(password, salt, null, (_err, hash) => {
        if (_err) {
          reject(err);
        }

        resolve(hash);
      });
    });
  });
}
/**
 * Creates password hash
 * @param  {Sequelize} seq - A reference to Sequelize to have access to the
 + the Promise class
 * @param  {Text} password - password plain text
 * @returns {Promise}  A promise which resolves to password hash, or rejects if
 *  error is encountered.
 */
Creates password hash
@param  {Sequelize} seq - A reference to Sequelize to have access to the
+ the Promise class
@param  {Text} password - password plain text
@returns {Promise}  A promise which resolves to password hash, or rejects if
error is encountered.
Creates password hash @param { Sequelize } seq - A reference to Sequelize to have access to the + the Promise class @param { Text } password - password plain text @returns { Promise } A promise which resolves to password hash or rejects if error is encountered .
function hashPassword(seq, password) {
  return new seq.Promise((resolve, reject) => {
    bcrypt.genSalt(conf.db.passwordHashSaltNumRounds, (err, salt) => {
      if (err) {
        reject(err);
      }
      bcrypt.hash(password, salt, null, (_err, hash) => {
        if (_err) {
          reject(err);
        }
        resolve(hash);
      });
    });
  });
}
function hashPassword ( seq , password ) { return new seq . Promise ( ( resolve , reject ) => { bcrypt . genSalt ( conf . db . passwordHashSaltNumRounds , ( err , salt ) => { if ( err ) { reject ( err ) ; } bcrypt . hash ( password , salt , null , ( _err , hash ) => { if ( _err ) { reject ( err ) ; } resolve ( hash ) ; } ) ; } ) ; } ) ; }
Creates password hash
 @param  {Sequelize} seq - A reference to Sequelize to have access to the
+ the Promise class
 @param  {Text} password - password plain text
 @returns {Promise}  A promise which resolves to password hash, or rejects if
  error is encountered.
Creates password hash @param { Sequelize } seq - A reference to Sequelize to have access to the + the Promise class @param { Text } password - password plain text @returns { Promise } A promise which resolves to password hash or rejects if error is encountered .