aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-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];
}