aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/users.js')
-rw-r--r--routes/users.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/routes/users.js b/routes/users.js
index 8d45e8c3..82a71549 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -132,6 +132,8 @@ app.post("/user", auth, async (req, res) => {
let { user } = req;
let {
address,
+ cipher,
+ pubkey,
confirm,
currencies,
currency,
@@ -140,6 +142,7 @@ app.post("/user", auth, async (req, res) => {
password,
newpin,
pin,
+ salt,
seed,
tokens,
twofa,
@@ -170,6 +173,10 @@ app.post("/user", auth, async (req, res) => {
}
if (unit) user.unit = unit;
+ if (cipher) user.cipher = cipher;
+ if (pubkey) user.pubkey = pubkey;
+ if (salt) user.salt = salt;
+
user.currency = currency;
user.currencies = currencies;
user.pin = newpin;