From 7e14da4e949a06da92b8b67024b2ef813512236f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 13 Feb 2018 19:35:40 -0800 Subject: read from zmq and use socket.io instead of deepstream --- mutations.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mutations.js') diff --git a/mutations.js b/mutations.js index 57332b7d..1d716e78 100644 --- a/mutations.js +++ b/mutations.js @@ -1,3 +1,4 @@ +import bcrypt from 'bcrypt' import { resolver, defaultArgs, defaultListArgs, attributeFields } from 'graphql-sequelize' import { graphql, @@ -31,6 +32,7 @@ module.exports = (db, gqltypes, lnrpc) => { }, resolve: async (root, { user }) => { user.address = (await lnrpc.newAddress({ type: 1 }, lnrpc.meta)).address + user.password = await bcrypt.hash(user.password, 1) return db['User'].create(user) } }, -- cgit v1.2.3