From c3ed4317d37f1c760392d9a89610d07ccd3a7d03 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 29 Jan 2020 14:33:51 -0800 Subject: set payment currency --- users.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'users.js') diff --git a/users.js b/users.js index d797b2f8..b1e2063c 100644 --- a/users.js +++ b/users.js @@ -44,6 +44,7 @@ module.exports = (addresses, auth, app, bc, db, emit) => { user.password = await bcrypt.hash(user.password, 1); user.name = user.username; user.currency = "USD"; + user.currencies = ["USD"]; addresses[user.address] = user.username; addresses[user.liquid] = user.username; @@ -106,6 +107,7 @@ module.exports = (addresses, auth, app, bc, db, emit) => { let { username, currency, + currencies, email, phone, twofa, @@ -139,11 +141,14 @@ module.exports = (addresses, auth, app, bc, db, emit) => { } user.currency = currency; + user.currencies = currencies; user.email = email; user.phone = phone; user.twofa = twofa; user.pin = pin; + console.log(user.currencies); + if (password && password === passconfirm) { user.password = await bcrypt.hash(password, 1); } -- cgit v1.2.3