diff options
| author | Adam Soltys <[email protected]> | 2019-10-06 22:15:00 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2019-10-06 22:15:03 -0700 |
| commit | 866e864f1dbd5125da2245400f214a2c6dd5d8fe (patch) | |
| tree | d16176b59cc29340dbfca62d8d8dfc5d9fca041f | |
| parent | 278320788aac82035d7afa6c6e77cbe94c6edad9 (diff) | |
| download | coinos-server-866e864f1dbd5125da2245400f214a2c6dd5d8fe.tar.gz coinos-server-866e864f1dbd5125da2245400f214a2c6dd5d8fe.zip | |
default to USD currency for new users
| -rw-r--r-- | users.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -26,6 +26,7 @@ module.exports = (addresses, auth, app, bc, db, emit) => { user.address = await bc.getNewAddress("", "bech32"); user.password = await bcrypt.hash(user.password, 1); user.name = user.username; + user.currency = "USD"; addresses[user.address] = user.username; await db.User.create(user); |
