aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-11-26 14:53:29 -0800
committerAdam Soltys <[email protected]>2026-02-06 08:57:26 -0800
commite95e3b8e35a858cc200de6c0b74e3e172e4f6d6e (patch)
tree27d4c35c51f1bffed8628689af9d840c87fb7941
parent2a408a3a7486464296e4e7f996fc2140a664d407 (diff)
downloadcoinos-server-e95e3b8e35a858cc200de6c0b74e3e172e4f6d6e.tar.gz
coinos-server-e95e3b8e35a858cc200de6c0b74e3e172e4f6d6e.zip
ark address
-rw-r--r--lib/types.ts1
-rw-r--r--lib/whitelist.ts1
-rw-r--r--routes/users.ts3
3 files changed, 5 insertions, 0 deletions
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",