diff options
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", |
