aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/users.js20
1 files changed, 12 insertions, 8 deletions
diff --git a/routes/users.js b/routes/users.js
index ce6156cd..8a6506e1 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -154,17 +154,19 @@ app.post(
try {
let { user } = req;
let {
- username,
- fiat,
- unit,
- currency,
+ address,
+ confirm,
currencies,
- twofa,
- pin,
+ currency,
+ email,
+ fiat,
password,
- confirm,
+ pin,
+ seed,
tokens,
- seed
+ twofa,
+ unit,
+ username
} = req.body;
let exists = await db.User.findOne({
@@ -196,6 +198,8 @@ app.post(
user.pin = pin;
user.seed = seed;
user.fiat = fiat;
+ user.email = email;
+ user.address = address;
if (password && password === confirm) {
user.password = await bcrypt.hash(password, 1);