summary refs log tree commit diff
path: root/src/api/routes/users/@me/index.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-12 15:36:29 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-12 15:36:29 +1000
commitd18584f8e9f9423f9d72d837a36a0c3cad6e8d10 (patch)
tree7dae8a74764d38289985309e54f5d359716ef685 /src/api/routes/users/@me/index.ts
parentremove default welcome screen text (diff)
downloadserver-d18584f8e9f9423f9d72d837a36a0c3cad6e8d10.tar.xz
Refactor email sending + remove email verification if mail sending is not set up
Diffstat (limited to 'src/api/routes/users/@me/index.ts')
-rw-r--r--src/api/routes/users/@me/index.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts

index 8fe86265..ad11a428 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts
@@ -18,7 +18,6 @@ import { route } from "@spacebar/api"; import { - adjustEmail, Config, emitEvent, FieldErrors, @@ -111,7 +110,6 @@ router.patch( } if (body.email) { - body.email = adjustEmail(body.email); if (!body.email && Config.get().register.email.required) throw FieldErrors({ email: {