From 672d5ba35c05bbbbc564e47c19c11736c01720c7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 18 Sep 2025 21:06:51 -0700 Subject: remove verification on email change --- routes/users.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'routes') 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]; } -- cgit v1.2.3