diff options
| author | Adam Soltys <[email protected]> | 2025-09-18 21:06:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-18 21:06:51 -0700 |
| commit | 672d5ba35c05bbbbc564e47c19c11736c01720c7 (patch) | |
| tree | c8815940a6190588ceed88e21761669c26145e2a /routes | |
| parent | 3d933408542d5176af53afe111a98c06ff80c076 (diff) | |
| download | coinos-server-672d5ba35c05bbbbc564e47c19c11736c01720c7.tar.gz coinos-server-672d5ba35c05bbbbc564e47c19c11736c01720c7.zip | |
remove verification on email change
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/users.ts | 5 |
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]; } |
