From e95e3b8e35a858cc200de6c0b74e3e172e4f6d6e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Nov 2025 14:53:29 -0800 Subject: ark address --- lib/types.ts | 1 + lib/whitelist.ts | 1 + routes/users.ts | 3 +++ 3 files changed, 5 insertions(+) diff --git a/lib/types.ts b/lib/types.ts index ad58bf38..4e3b40c0 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -2,6 +2,7 @@ export interface User { about: string; admin: string; anon: string; + arkAddress: string; autowithdraw: string; balance: string; banner: string; diff --git a/lib/whitelist.ts b/lib/whitelist.ts index 53fd231f..748092cb 100644 --- a/lib/whitelist.ts +++ b/lib/whitelist.ts @@ -2,6 +2,7 @@ export default [ "about", "admin", "anon", + "arkAddress", "autowithdraw", "balance", "banner", diff --git a/routes/users.ts b/routes/users.ts index 64659a01..a25b6a8e 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -308,6 +308,7 @@ export default { const attributes = [ "about", + "arkAddress", "autowithdraw", "banner", "currencies", @@ -347,6 +348,8 @@ export default { user.fresh = false; user.tip = Math.max(0, Math.min(1000, Number.parseInt(user.tip))); + console.log("ARK ADDR", user.arkAddress); + if (password && password === confirm) { user.password = await Bun.password.hash(password, { algorithm: "bcrypt", -- cgit v1.2.3