aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-09-18 21:06:51 -0700
committerAdam Soltys <[email protected]>2025-09-18 21:06:51 -0700
commit672d5ba35c05bbbbc564e47c19c11736c01720c7 (patch)
treec8815940a6190588ceed88e21761669c26145e2a
parent3d933408542d5176af53afe111a98c06ff80c076 (diff)
downloadcoinos-server-672d5ba35c05bbbbc564e47c19c11736c01720c7.tar.gz
coinos-server-672d5ba35c05bbbbc564e47c19c11736c01720c7.zip
remove verification on email change
-rw-r--r--routes/users.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/routes/users.ts b/routes/users.ts
index 93311aff..e94c7607 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -284,6 +284,11 @@ export default {
"twofa",
];
+ if (body.email) {
+ user.verified = false;
+ user.notify = false;
+ }
+
for (const a of attributes) {
if (typeof body[a] !== "undefined") user[a] = body[a];
}