diff options
| author | John Barratt <[email protected]> | 2023-02-14 14:20:43 -0800 |
|---|---|---|
| committer | John Barratt <[email protected]> | 2023-02-14 14:20:43 -0800 |
| commit | 6f5ffb59b83fb57546c46df6a610b8efaf1252cf (patch) | |
| tree | 6124d7f7617593f4e7eb0bb7474f5d5800f239e1 /lib | |
| parent | 10f4606eead3bb5e899c7b5ab091c124338904f1 (diff) | |
| download | coinos-server-6f5ffb59b83fb57546c46df6a610b8efaf1252cf.tar.gz coinos-server-6f5ffb59b83fb57546c46df6a610b8efaf1252cf.zip | |
add email and phone number fields to user
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/register.js | 2 | ||||
| -rw-r--r-- | lib/utils.js | 2 | ||||
| -rw-r--r-- | lib/whitelist.js | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/lib/register.js b/lib/register.js index ea86fbae..c55d2f9d 100644 --- a/lib/register.js +++ b/lib/register.js @@ -45,6 +45,8 @@ export default async (user, ip, requireChallenge) => { user.otpsecret = authenticator.generateSecret(); user.balance = 0; user.migrated = true; + user.email = null; + user.phone = null; let d = ip.split("."); ip = ((+d[0] * 256 + +d[1]) * 256 + +d[2]) * 256 + +d[3]; diff --git a/lib/utils.js b/lib/utils.js index 8291d173..8c3852e8 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -44,6 +44,8 @@ export const fields = [ "pubkey", "password", "username", + "phone", + "email", "salt", "currency", "currencies", diff --git a/lib/whitelist.js b/lib/whitelist.js index 9b2225e2..bc14a3d4 100644 --- a/lib/whitelist.js +++ b/lib/whitelist.js @@ -8,7 +8,6 @@ export default [ "currencies", "currency", "display", - "email", "fiat", "follows", "followers", |
